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 | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 49f42f3..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,6 +9,7 @@ { path: '/', component: Layout, + redirect:'/home', children: [ { path: '/index', @@ -54,6 +55,18 @@ 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') } ] }, @@ -64,6 +77,18 @@ 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', component: Login -- Gitblit v1.9.1