浏览代码

fix:常用功能保存成功抽屉销毁操作

yangfeng 2 年之前
父节点
当前提交
1b1e70da5d
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      src/views/workspace/components/CommonUse.vue

+ 8 - 2
src/views/workspace/components/CommonUse.vue

@@ -144,6 +144,12 @@ export default {
         this.mainFunList = JSON.parse(JSON.stringify(val))
         this.formatMainFunList(this.addedList)
       }
+    },
+    drawerShow (val) {
+      if (!val) {
+        this.tabFixed = false
+        this.tabActive = 0
+      }
     }
   },
   async created () {
@@ -279,8 +285,8 @@ export default {
       })
     },
     onCloseDrawer () {
-      this.tabFixed = false
-      this.tabActive = 0
+      // this.tabFixed = false
+      // this.tabActive = 0
       this.formatMainFunList(this.commonList)
       this.changeDrawerState(false)
     },