From 30605ea2c8e9683e8202cd531de84ce98fd7be75 Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期五, 17 五月 2024 15:56:44 +0800 Subject: [PATCH] biji --- 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