From e733164e1c779b3aef7245936b9daf7875bf791e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 14 Dec 2023 17:12:33 +0800
Subject: [PATCH] 解决屏幕缩放导致鼠标位置不准确的问题,右侧,切换校区后的显示BUG
---
src/components/leftNav/index.vue | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/components/leftNav/index.vue b/src/components/leftNav/index.vue
index 50e5c03..4a73a08 100644
--- a/src/components/leftNav/index.vue
+++ b/src/components/leftNav/index.vue
@@ -269,10 +269,16 @@
},
initialize (campus) {
-
var that = this
that.$nextTick(() => {
+ this.leftNavData = this.leftNavData.map(item => {
+ return {
+ ...item,
+ flag: false,
+ img: item.normal
+ }
+ })
this.leftNavData[0].flag = true
this.leftNavData[0].img = this.leftNavData[0].checked
--
Gitblit v1.9.3