From 17ccc0c9baeaa76772fe328f5871c6c25497a6e5 Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期二, 04 三月 2025 11:25:55 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/H5/shehong-vehicle-supervision

---
 src/router/router.js |   38 +++++++++++++++++++++++++++++++++++---
 1 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/src/router/router.js b/src/router/router.js
index a6a9399..eff79e7 100644
--- a/src/router/router.js
+++ b/src/router/router.js
@@ -1,17 +1,49 @@
 import Layout from '@/layouts'
+/**
+ * icon
+ * home: 首页
+ * alarm: 报警
+ * car: 车辆
+ * company: 公司
+ * complaint: 投诉
+ * sys: 系统
+ * order: 订单
+ * 
+ * hide: true, // 是否隐藏
+ * 
+ */
 
 export default [
     {
         path: '/',
+        component: () => import('@/view/login'),
+    },
+    {
+        path: '/home',
         component: Layout,
         children: [
             {
-                path: '/',
+                path: '/home',
                 component: () => import('@/view/home'),
+                title: '首页',
+                icon: 'home'
+            },
+            {
+                path: '/early-warning',
+                component: () => import('@/view/early-warning'),
                 meta: {
-                    title: '首页'
+                    title: '报警记录',
+                    icon: 'home'
+                }
+            },
+            {
+                path: '/complaint',
+                component: () => import('@/view/complaint/index'),
+                meta: {
+                    title: '投诉记录'
                 }
             } 
         ]
     },
-]
\ No newline at end of file
+    
+]

--
Gitblit v1.7.1