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 |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 7088b74..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,
@@ -23,11 +14,21 @@
           path: '/home',
           name: 'home',
           meta: { auth: true },
-          component: Home,
+          component: Home
+        },
+        {
+          path: '/dictionary',
+          name: 'dictionary',
+          meta: { auth: true },
+          component: () => import('@/views/components/dictionary.vue')
         }
       ]
+    },
+    {
+      path: '/login',
+      name: 'login',
+      component: Login
     }
-  
   ]
 })
 

--
Gitblit v1.9.1