From 408ce401cadce66e4de748dec48daf5e8af00477 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期三, 15 五月 2024 23:35:52 +0800 Subject: [PATCH] 1 --- src/router/index.ts | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 7088b74..3a6e220 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -4,12 +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', @@ -23,11 +19,16 @@ path: '/home', name: 'home', meta: { auth: true }, - component: Home, + component: Home + }, + { + path: '/dictionary', + name: 'dictionary', + meta: { auth: true }, + component: () =>import('@/views/components/dictionary.vue') } ] } - ] }) -- Gitblit v1.9.1