diff --git a/src/router/index.js b/src/router/index.js index 8b2f8cc..a5f24a1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,10 +4,10 @@ import VueRouter from 'vue-router' Vue.use(VueRouter) const routes = [ - // { - // path: '/', - // redirect: '/home' - // }, + { + path: '/', + redirect: '/home' + }, { meta: { title: '首页', index: 0, closeNavBar: true }, path: '/home', diff --git a/vue.config.js b/vue.config.js index eafaa91..af9770d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,7 +5,7 @@ function resolve(dir) { return path.join(__dirname, dir) } module.exports = defineConfig({ - publicPath: '/h5/', + publicPath: '/h5', outputDir: 'dist', assetsDir: './static', transpileDependencies: true,