From b1e0856a08e964b8662fe8b1f3c795bae47b6904 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Thu, 6 Apr 2023 14:03:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 8 ++++---- vue.config.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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,