From 3e091224ab26252d8624b42b461ba773ee8bee0f Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 03 十一月 2024 19:16:31 +0800
Subject: [PATCH] update

---
 src/views/home/widgets/components/Entrance.vue |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/src/views/home/widgets/components/Entrance.vue b/src/views/home/widgets/components/Entrance.vue
index 2116feb..e4e7d6f 100644
--- a/src/views/home/widgets/components/Entrance.vue
+++ b/src/views/home/widgets/components/Entrance.vue
@@ -82,19 +82,13 @@
 				//console.log(this.setCard,222)
 			},
 			getCard() {  //鑾峰彇蹇嵎鑿滃崟
-				var data = this.$TOOL.data.get("MENU");
-				this.workid = data[0].children[0].id;  //璁板綍绗竴涓猚hildren鐨刬d
-				this.$HTTP.get(`/api/blade-system/workbench-card/list?workbenchId=${this.workid}`).then(res=> {
-					if(res.code == 200) {
-						this.setCard = res.data;
-						res.data.forEach(item=> {
-							if(item.cardKey == "Entrance") {
-								this.$TOOL.data.set("CARD_INFO", item.textContent);
-							}
-						})
-						this.init(); //鏍规嵁鑾峰彇鐨勫揩鎹疯彍鍗曞拰鑿滃崟纭畾鏈�鍚庝竴绾у拰鍕鹃�夌姸鎬�
+				this.setCard = this.$CONFIG.DEFAULT_GRID.data;
+				this.setCard.forEach(item=> {
+					if(item.cardKey == "Entrance") {
+						this.$TOOL.data.set("CARD_INFO", item.textContent);
 					}
 				})
+				this.init(); //鏍规嵁鑾峰彇鐨勫揩鎹疯彍鍗曞拰鑿滃崟纭畾鏈�鍚庝竴绾у拰鍕鹃�夌姸鎬�
 			},
 			init() {
 				this.titleList = [];
@@ -165,7 +159,7 @@
 	ul li div,.addMenu{border: 1px solid #409eff;margin-top: 10px;height: 43px;margin-left: 10px;display: flex;align-items: center;justify-content: center;color: #409eff;border-radius: 2px;border-radius: 2px;white-space: nowrap;cursor: pointer;min-width: 112px;}
 	ul li div:hover {background-color: #ebf4f4;}
 	.addMenu {border: 1px dashed #409eff;}
-	..addMenu:hover {border: 1px dashed #104E8B;}
+	.addMenu:hover {border: 1px dashed #104E8B;}
 	.parent-children-title {margin-left: 10px;margin-top: 24px;font-weight: 700;font-size: 14px;text-align: left;color: #333;}
 	.parent-children {display: flex;flex-direction: row;flex-wrap: wrap;justify-content: flex-start;align-items: flex-start;padding-left: 10px;box-sizing: border-box;}
 	.parent-children span {margin-left: 10px;margin-top: 10px;width: 22%;border: 0.5px solid #20B2AA;border-radius: 2px;height: 43px;display: flex;align-items: center;justify-content: center;cursor: pointer;position: relative;min-width: 112px;}

--
Gitblit v1.9.3