Browse Source

pfd流程图放大拖拽后关闭当前页,从菜单栏进入后页面移位优化

dengliying 11 months ago
parent
commit
103074e35e
1 changed files with 7 additions and 1 deletions
  1. 7 1
      ui/src/views/monitor/pfd/index.vue

+ 7 - 1
ui/src/views/monitor/pfd/index.vue

@@ -397,7 +397,7 @@ export default {
     //在vue自定义指令中添加该指令
     directives: {
       move(el) {
-
+        console.log('dragData',dragData);
         // 根据不同参数默认展示不同区域
         const url = window.location.href;
           let params = {};
@@ -585,6 +585,12 @@ export default {
           });
       }
     },
+    destroyed() {
+      dragData = {
+        left:"",
+        top: "",
+      };
+    },
     methods: {
       // 图片缩放函数
       resizeImage(type){