From 2cac4a0f4ea0b1cf7bff4759fae8136c72792563 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 14 四月 2025 15:30:29 +0800
Subject: [PATCH] 番茄闹钟

---
 src/router/index.ts |   42 +++++++++++++++++++++++++++++++++---------
 1 files changed, 33 insertions(+), 9 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 1242777..997775c 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,6 +1,6 @@
 import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
 import Layout from '@/layout/layout.vue'
-const Reader = () => import('@/views/home.vue')
+const Reader = () => import('@/views/readerPages/home.vue')
 const Login = () => import('@/views/login.vue')
 
 const router = createRouter({
@@ -9,10 +9,12 @@
     {
       path: '/',
       component: Layout,
+      redirect:'/home',
       children: [
         {
           path: '/index',
           name: 'index',
+          redirect: "/bookshelfList",
           meta: { auth: true },
           component: () => import('@/views/index.vue'),
           children: [
@@ -49,21 +51,43 @@
           ]
         },
         {
-          path: '/home',
-          name: 'home',
-          meta: { auth: true, name: '闃呰鍣�' },
-          component: Reader
-        },
-        
-        {
           path: '/dictionary',
           name: 'dictionary',
           meta: { auth: true, name: '璇嶅吀' },
           component: () => import('@/views/components/dictionary.vue')
+        },
+        {
+          path: '/newWord',
+          name: 'newWord',
+          meta: { auth: true, name: '鐢熻瘝' },
+          component: () => import('@/views/components/newWord.vue')
+        },
+        {
+          path: '/wrongQuestion',
+          name: 'wrongQuestion',
+          meta: { auth: true, name: '閿欓' },
+          component: () => import('@/views/components/wrongQuestion.vue')
         }
       ]
     },
-
+    {
+      path: '/home',
+      name: 'home',
+      meta: { auth: true, name: '闃呰鍣�' },
+      component: Reader
+    },
+    {
+      path: '/webHome',
+      name: 'webHome',
+      meta: { auth: true, name: 'web闃呰鍣�' },
+      component: () => import('@/views/readerPages/webHome.vue')
+    },
+    {
+      path: '/mobileHome',
+      name: 'mobileHome',
+      meta: { auth: true, name: '绉诲姩闃呰鍣�' },
+      component: () => import('@/views/readerPages/mobileHome.vue')
+    },
     {
       path: '/login',
       name: 'login',

--
Gitblit v1.9.1