From 630435ecc8c03c0cfb29756d7633b57ef49ea998 Mon Sep 17 00:00:00 2001 From: wuzhihao Date: Fri, 30 Aug 2024 17:14:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 514bb11..9600dc8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,13 +5,19 @@ import Login from '../views/login/login.vue' import local from '../utils/local' Vue.use(VueRouter) + const routes = [ { path: '/login', component: Login, meta: { title: '登录', activeMenu: '/login' } - }, + }, { + path: '/', + component: Layout, + redirect: '/login', + meta: { title: '', activeMenu: '/login' } + }, { // 首页 path: '/index', component: Layout,