pull/2/head
xiaozhiyong 2 years ago
parent 36944296e4
commit b1e0856a08
  1. 8
      src/router/index.js
  2. 2
      vue.config.js

@ -4,10 +4,10 @@ import VueRouter from 'vue-router'
Vue.use(VueRouter) Vue.use(VueRouter)
const routes = [ const routes = [
// { {
// path: '/', path: '/',
// redirect: '/home' redirect: '/home'
// }, },
{ {
meta: { title: '首页', index: 0, closeNavBar: true }, meta: { title: '首页', index: 0, closeNavBar: true },
path: '/home', path: '/home',

@ -5,7 +5,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
module.exports = defineConfig({ module.exports = defineConfig({
publicPath: '/h5/', publicPath: '/h5',
outputDir: 'dist', outputDir: 'dist',
assetsDir: './static', assetsDir: './static',
transpileDependencies: true, transpileDependencies: true,

Loading…
Cancel
Save