From 55f55103fed83d2584012e4308c1c31779574eb0 Mon Sep 17 00:00:00 2001
From: longyvfengyun <496960745@qq.com>
Date: 星期五, 16 六月 2023 10:23:36 +0800
Subject: [PATCH] 修改路由信息

---
 src/views/mainLayout/components/SlideMenu.vue |   65 +++++++++++---------------------
 1 files changed, 22 insertions(+), 43 deletions(-)

diff --git a/src/views/mainLayout/components/SlideMenu.vue b/src/views/mainLayout/components/SlideMenu.vue
index 3fee2cd..f10a3f8 100644
--- a/src/views/mainLayout/components/SlideMenu.vue
+++ b/src/views/mainLayout/components/SlideMenu.vue
@@ -1,10 +1,6 @@
 <script setup>
 import {computed, ref} from "vue";
 import usePageMenuStore from "@/store/usePageMenuStore";
-import {
-	Menu as IconMenu,
-	Setting,
-} from '@element-plus/icons-vue'
 const pageMenuStore = usePageMenuStore();
 
 const isCollapse = computed(()=>{
@@ -17,49 +13,28 @@
 	{
 		title: "棣栭〉",
 		path: "/",
+		icon: "HomeFilled"
 	},
 	{
-		title: "瀹㈡埛绠$悊",
-		path: "/customer",
-		children: [
-			{
-				title: "瀹㈡埛妗f",
-				path: "/customer/customer"
-			},
-			{
-				title: "鎷滆璁板綍",
-				path: "/customer/visit"
-			},
-		]
+		title: "闂ㄧ",
+		path: "/accessControl",
+		icon: "Checked",
 	},
 	{
-		title: "淇吇棰勭害",
-		path: "business",
-		children: [
-			{
-				title: "棰勭害淇℃伅",
-				path: "/business/appointment"
-			},
-			{
-				title: "鏈嶅姟椤�",
-				path: "/business/service"
-			},
-			{
-				title: "缁撶畻鍗�",
-				path: "/business/statement"
-			},
-		]
+		title: "瑙嗛鐩戞帶",
+		path: "/video",
+		icon: "VideoCameraFilled",
 	},
 	{
-		title: "娴佺▼绠$悊",
-		path: "/flow",
-		children: [
-			{
-				title: "瀹℃牳娴佺▼瀹氫箟",
-				path: "/flow/definition"
-			},
-		],
-	}
+		title: "绌鸿皟",
+		path: "/airConditioning",
+		icon: "Postcard",
+	},
+	{
+		title: "鐢ㄦ埛绠$悊",
+		path: "/userManagement",
+		icon: "UserFilled"
+	},
 ];
 
 const handleOpen = ()=>{};
@@ -82,7 +57,9 @@
 			<template v-for="menu in menuData" :key="menu.path">
 				<el-sub-menu :index="menu.path" v-if="menu.children">
 					<template #title>
-						<el-icon><icon-menu /></el-icon>
+						<el-icon>
+							<component :is="menu.icon"></component>
+						</el-icon>
 						<span>{{menu.title}}</span>
 					</template>
 					<el-menu-item
@@ -91,7 +68,9 @@
 						:index="children.path">{{children.title}}</el-menu-item>
 				</el-sub-menu>
 				<el-menu-item :index="menu.path" v-else>
-					<el-icon><icon-menu /></el-icon>
+					<el-icon>
+						<component :is="menu.icon"></component>
+					</el-icon>
 					<template #title>{{menu.title}}</template>
 				</el-menu-item>
 			</template>

--
Gitblit v1.9.1