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

diff --git a/src/router/index.ts b/src/router/index.ts
index 775ed51..3a6e220 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,4 +1,4 @@
-import { createRouter, createWebHashHistory } from 'vue-router'
+import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
 import Layout from '@/layout/layout.vue'
 const Home = () => import('@/views/home.vue')
 const Login = () => import('@/views/login.vue')
@@ -6,10 +6,6 @@
 const router = createRouter({
   history: createWebHashHistory(import.meta.env.BASE_URL),
   routes: [
-    {
-      path: '/',
-      redirect: 'home'
-    },
     {
       path: '/login',
       name: 'login',
@@ -24,6 +20,12 @@
           name: 'home',
           meta: { auth: true },
           component: Home
+        },
+        {
+          path: '/dictionary',
+          name: 'dictionary',
+          meta: { auth: true },
+          component: () =>import('@/views/components/dictionary.vue')
         }
       ]
     }

--
Gitblit v1.9.1