From 964faa1077a89713910063c39ebe08fac4e4c56e Mon Sep 17 00:00:00 2001
From: Houjie <714924425@qq.com>
Date: 星期四, 24 七月 2025 17:44:18 +0800
Subject: [PATCH] 企业维修适配修改

---
 pages/index/index.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/pages/index/index.vue b/pages/index/index.vue
index 0ac998d..1acf9f2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -42,10 +42,20 @@
 				++this.commponent3Key
 		},
 		methods: {
-			NavChange: function(e) {
-				this.PageCur = e.currentTarget.dataset.cur
+			NavChange(e) {
+			  const cur = e.currentTarget.dataset.cur
+			  // 濡傛灉鍒囨崲鍒伴椤碉紝鎵嬪姩鏇存柊 cur 鍊硷紝瑙﹀彂 watch
+			  if (cur === 'home') {
+			    // 鍋囪 home 缁勪欢宸叉寕杞斤紝鍙�氳繃 ref 璋冪敤鏂规硶鎴栨洿鏂� prop
+			    this.$refs.home && this.$refs.home.$emit('update:cur', 'home')
+			  }
+			  this.PageCur = cur
 			}
 
+			// NavChange: function(e) {
+			// 	this.PageCur = e.currentTarget.dataset.cur
+			// }
+
 		}
 	}
 </script>

--
Gitblit v1.9.3