From a1f8fc2fdf89ab50cd46c5ad96f7fe3dbc333756 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期一, 13 五月 2024 14:53:23 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TextbookReader

---
 src/router/index.ts |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 775ed51..9664723 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,10 +1,10 @@
-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')
 
 const router = createRouter({
-  history: createWebHashHistory(import.meta.env.BASE_URL),
+  history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
     {
       path: '/',
@@ -24,6 +24,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