From 4165ebe94e92af85b093abe264eb404c6a5181e7 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 22 十一月 2024 10:48:08 +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