2 Commits 70f77c1f75 ... 1c675674a9

Author SHA1 Message Date
  wlf 1c675674a9 Merge branch 'dev' of ssh://git.cestong.com.cn:8162/cecf/observe-front into dev 8 months ago
  wlf 5e03eb7bdf 动态拓扑注掉mouted中的动态计算样式 8 months ago
1 changed files with 9 additions and 9 deletions
  1. 9 9
      src/views/business-analysis/topology/index.vue

+ 9 - 9
src/views/business-analysis/topology/index.vue

@@ -517,15 +517,15 @@ export default {
 
   },
   mounted(){
-    window.addEventListener('scroll', function() {
-        var element = document.getElementById("btn-box"); // 获取目标元素
-        var containerTopOffset = getComputedStyle(document.querySelector('.left-box')).getPropertyValue('padding-top'); // 计算容器顶部边界与视口之间的距离
-        if (window.pageYOffset > parseInt(containerTopOffset)) {
-            element.style.position = 'fixed'; // 若滚动超过容器顶部边界,则修改元素的position为fixed
-        } else {
-            element.style.position = 'absolute'; // 否则还原为absolute定位
-        }
-    });
+    // window.addEventListener('scroll', function() {
+    //     var element = document.getElementById("btn-box"); // 获取目标元素
+    //     var containerTopOffset = getComputedStyle(document.querySelector('.left-box')).getPropertyValue('padding-top'); // 计算容器顶部边界与视口之间的距离
+    //     if (window.pageYOffset > parseInt(containerTopOffset)) {
+    //         element.style.position = 'fixed'; // 若滚动超过容器顶部边界,则修改元素的position为fixed
+    //     } else {
+    //         element.style.position = 'absolute'; // 否则还原为absolute定位
+    //     }
+    // });
   },
   methods:{
     getAppsScore(){