From 05a001098514eb86065b6277ebe3ead90837f833 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期二, 03 六月 2025 09:50:33 +0800 Subject: [PATCH] fix:修改自动播放 --- src/router/index.js | 33 ++++++++++++++++----------------- 1 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index c6d4a29..88ad225 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,11 +7,6 @@ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { createWebHashHistory, createRouter } from 'vue-router' -/* Layout */ -import Layout from '@/layout' -import Screen from '@/screen' -import Flow from '@/screen/flow.vue' -import Temp from '@/screen/temp.vue' /** * Note: 路由配置项 @@ -37,16 +32,7 @@ { path: '/', hidden: true, - component: Layout, redirect: '/screen', - children: [ - { - path: 'userCenter', - component: () => import('@/views/userCenter.vue'), - name: 'userCenter', - meta: { title: '个人中心', icon: 'PhUserCircleFill', affix: true } - }, - ] }, { path: '/login', @@ -65,8 +51,21 @@ }, { path: '/screen', - component: Screen, + component: () => import('@/screen/index.vue'), hidden: true + }, + { + path: '', //单独添加得后台路由,需要一层layout + hidden: true, + component: () => import('@/layout/index.vue'), + children: [ + { + path: '/userCenter', + component: () => import('@/views/userCenter.vue'), + name: 'userCenter', + meta: { title: '个人中心', icon: 'PhUserCircleFill', affix: true } + }, + ] } ] @@ -74,7 +73,7 @@ const FlowScreenRouter = [ { path: '/flow', - component: Flow, + component: () => import('@/screen/flow.vue'), redirect: '/flow/home', children: [ { @@ -109,7 +108,7 @@ const TempScreenRouter = [ { path: '/temp', - component: Temp, + component: () => import('@/screen/temp.vue'), redirect: '/temp/home', children: [ { -- Gitblit v1.9.3