From bad4f431d9287c31da042ada125910e9b3e8c3b8 Mon Sep 17 00:00:00 2001 From: charles <981744753@qq.com> Date: 星期一, 06 五月 2024 14:38:44 +0800 Subject: [PATCH] fix:修复uibug --- src/router/index.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 6a50781..0561bc0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -24,8 +24,9 @@ ] } ]; +const mode = process.env.NODE_ENV==='testing'||'production'?'hash':'history'; const router = new VueRouter({ - mode: 'hash', + mode, routes }); export default router -- Gitblit v1.8.0