From 3beea8bd4646d2bae9bef028f7226ece015766bd Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期五, 06 六月 2025 16:46:14 +0800 Subject: [PATCH] fix:关闭压缩 --- src/router/index.js | 69 +++++++++++++++++++++++++++++----- 1 files changed, 59 insertions(+), 10 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 7fc95f4..88ad225 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,10 +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 Screen from '@/screen' -import Flow from '@/screen/flow.vue' -import Temp from '@/screen/temp.vue' /** * Note: 路由配置项 @@ -36,7 +32,7 @@ { path: '/', hidden: true, - redirect: '/user' + redirect: '/screen', }, { path: '/login', @@ -55,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 } + }, + ] } ] @@ -64,13 +73,33 @@ const FlowScreenRouter = [ { path: '/flow', - component: Flow, + component: () => import('@/screen/flow.vue'), redirect: '/flow/home', children: [ { path: 'home', component: () => import('@/views/screen/flow/home/index.vue') - } + }, + { + path: 'ecology', + component: () => import('@/views/screen/flow/ecology/index.vue') + }, + { + path: 'graphic/:id?', + component: () => import('@/views/screen/flow/graphic/index.vue') + }, + { + path: 'shebei', + component: () => import('@/views/screen/flow/shebei/index.vue') + }, + { + path: 'warning', + component: () => import('@/views/screen/flow/warning/index.vue') + }, + { + path: 'report', + component: () => import('@/views/screen/flow/report/index.vue') + }, ] }, ] @@ -79,13 +108,33 @@ const TempScreenRouter = [ { path: '/temp', - component: Temp, + component: () => import('@/screen/temp.vue'), redirect: '/temp/home', children: [ { path: 'home', component: () => import('@/views/screen/temperature/home/index.vue') - } + }, + { + path: 'shebei', + component: () => import('@/views/screen/temperature/shebei/index.vue') + }, + { + path: 'monitor', + component: () => import('@/views/screen/temperature/monitor/index.vue') + }, + { + path: 'graphic', + component: () => import('@/views/screen/temperature/graphic/index.vue') + }, + { + path: 'statics', + component: () => import('@/views/screen/temperature/statics/index.vue') + }, + { + path: 'report', + component: () => import('@/views/screen/temperature/report/index.vue') + }, ] } ] -- Gitblit v1.9.3