From 60c18631eee7032859b18cb7435c1de12e83d0ae Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期五, 17 五月 2024 16:21:12 +0800 Subject: [PATCH] 401 --- src/router/index.ts | 18 +++++++----------- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 9664723..4c1125e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -4,17 +4,8 @@ const Login = () => import('@/views/login.vue') const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHashHistory(import.meta.env.BASE_URL), routes: [ - { - path: '/', - redirect: 'home' - }, - { - path: '/login', - name: 'login', - component: Login - }, { path: '/', component: Layout, @@ -29,9 +20,14 @@ path: '/dictionary', name: 'dictionary', meta: { auth: true }, - component: () =>import('@/views/components/dictionary.vue') + component: () => import('@/views/components/dictionary.vue') } ] + }, + { + path: '/login', + name: 'login', + component: Login } ] }) -- Gitblit v1.9.1