Parcourir la source

目录树移动定位线bug修复

jwyu il y a 11 mois
Parent
commit
5942556801

+ 0 - 8
src/views/dataEntry_manage/databaseList.vue

@@ -1506,14 +1506,6 @@ export default {
 				? e.target.childNodes[0].style.backgroundColor = '#409eff' 
 				: e.target.style.backgroundColor = '#409eff';
 			}
-			const dropLine=$('.el-tree__drop-indicator')[0]
-			if(dropLine){
-				// console.log(dropLine);
-				setTimeout(() => {
-					dropLine.style.top=e.layerY+'px'
-					// console.log(e.layerY,dropLine);
-				}, 100);
-			}
 			
 		},
 		/* 拖拽离开/拖拽完成重置背景色 */

+ 0 - 6
src/views/predictEdb_manage/mixins/mixin.js

@@ -189,12 +189,6 @@ export default {
 				? e.target.childNodes[0].style.backgroundColor = '#409eff' 
 				: e.target.style.backgroundColor = '#409eff';
 			}
-      const dropLine=$('.el-tree__drop-indicator')[0]
-			if(dropLine){
-				setTimeout(() => {
-					dropLine.style.top=e.layerY+'px'
-				}, 100);
-			}
     },
 
     /* 拖拽离开/拖拽完成重置背景色 */