From 8f36a203bbee6c74c6531331a7cf00572120bfab Mon Sep 17 00:00:00 2001
From: web <candymxq888@outlook.com>
Date: 星期日, 27 四月 2025 17:28:59 +0800
Subject: [PATCH] fix:修改配置

---
 src/router/index.js |   56 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 53 insertions(+), 3 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index 7fc95f4..c6d4a29 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -8,6 +8,7 @@
  */
 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'
@@ -36,7 +37,16 @@
   {
     path: '/',
     hidden: true,
-    redirect: '/user'
+    component: Layout,
+    redirect: '/screen',
+    children: [
+      {
+        path: 'userCenter',
+        component: () => import('@/views/userCenter.vue'),
+        name: 'userCenter',
+        meta: { title: '个人中心', icon: 'PhUserCircleFill', affix: true }
+      },
+    ]
   },
   {
     path: '/login',
@@ -70,7 +80,27 @@
       {
         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')
+      },
     ]
   },
 ]
@@ -85,7 +115,27 @@
       {
         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