Forráskód Böngészése

fix: 修复初始化导航栏问题

liujt 2 hónapja
szülő
commit
a8586ee3bf
1 módosított fájl, 11 hozzáadás és 11 törlés
  1. 11 11
      pages/index/index.vue

+ 11 - 11
pages/index/index.vue

@@ -254,7 +254,6 @@
 							this.productionList = f.children;
 						} else if (f.path == "operationsList") {
 							const promise = statistics().then((res) => {
-								console.log('statistics~~~', res)
 								this.workOrder = res;
 								f.children.forEach((item) => {
 									if (item.name == "保养工单") item.badge = res.maintenanceNum;
@@ -354,16 +353,17 @@
 							top: rects[0] ? rects[0].height : 80 
 						});
 						// 根据 moduleNavList 动态监测模块
-						this.moduleNavList.forEach(item => {
-							this.moduleObserver.observe('#module-' + item.id, (res) => {
-								if (res.intersectionRatio > 0) {
-									const index = parseInt(res.dataset.index);
-									if (!isNaN(index)) {
-										this.currentNavIndex = index;
-									}
-								}
-							});
-						});
+						// this.moduleNavList.forEach(item => {
+						// 	this.moduleObserver.observe('#module-' + item.id, (res) => {
+						// 		console.log('res~~~', res); 
+						// 		if (res.intersectionRatio > 0) {
+						// 			const index = parseInt(res.dataset.index);
+						// 			if (!isNaN(index)) {
+						// 				this.currentNavIndex = index;
+						// 			}
+						// 		}
+						// 	});
+						// });
 					});
 				});
 			},