Browse Source

刷新方法修改

sql715 1 month ago
parent
commit
273a59cedd
1 changed files with 6 additions and 2 deletions
  1. 6 2
      zkqy-ui/src/mixins/common.js

+ 6 - 2
zkqy-ui/src/mixins/common.js

@@ -34,9 +34,13 @@ export default {
     refresh() {
       try {
         // 获取调用堆栈
-        const stack = new Error().stack || '';
+        console.log('-----',this.$route.path)
+        let path = this.$route.path
+        // /ydyq/formCreateMange
+        // const stack = new Error().stack || '';
         // 如果调用链包含 form-create.esm.js 或 dragMenu,跳过执行
-        if (stack.includes('form-create.esm.js') || stack.includes('dragMenu')) {
+        if ( path == '/ydyq/formCreateMange' || path == '/ydyq/formCreate') {
+
           this.$forceUpdate()
           return;
         }