From 215530a0eb78faad5e3a0e7b0d695bb6485dcf15 Mon Sep 17 00:00:00 2001
From: 13404089107 <puwei@sinata.cn>
Date: 星期二, 04 三月 2025 11:34:42 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/H5/shehong-vehicle-supervision

---
 src/router/router.js |   41 ++++++++++++++++++++++++++++-------------
 1 files changed, 28 insertions(+), 13 deletions(-)

diff --git a/src/router/router.js b/src/router/router.js
index 602777a..b14885a 100644
--- a/src/router/router.js
+++ b/src/router/router.js
@@ -25,25 +25,40 @@
             {
                 path: '/home',
                 component: () => import('@/view/home'),
-                title: '首页',
-                icon: 'home'
+                meta: {
+                    title: '首页',
+                    icon: 'home'
+                }
             },
         ]
     },
     {
         path: '/early-warning',
-        component: () => import('@/view/early-warning'),
-        meta: {
-            title: '报警记录',
-            icon: 'home'
-        }
+        component: Layout,
+        children: [
+            {
+                path: '/early-warning',
+                component: () => import('@/view/early-warning'),
+                meta: {
+                    title: '报警记录',
+                    icon: 'alarm'
+                }
+            }
+        ]
     },
     {
         path: '/complaint',
-        component: () => import('@/view/complaint/index'),
-        meta: {
-            title: '投诉记录'
-        }
-    } 
-    
+        component: Layout,
+        children: [
+            {
+                path: '/complaint',
+                component: () => import('@/view/complaint/index'),
+                meta: {
+                    title: '投诉记录',
+                    icon: 'complaint'
+                }
+            }
+        ]
+    }
+
 ]

--
Gitblit v1.7.1