Browse Source

项目切换bug

qule 2 years ago
parent
commit
bbae3a1274
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/components/cadDrawingManage/index.vue

+ 7 - 2
src/components/cadDrawingManage/index.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: ql
  * @Date: 2022-01-11 14:46:04
- * @LastEditTime: 2022-01-25 15:28:06
+ * @LastEditTime: 2022-01-25 16:08:57
  * @LastEditors: Please set LastEditors
  * @FilePath: \adm-frontend\src\components\cadDrawingManage\index.vue
 -->
@@ -124,6 +124,10 @@ export default {
     },
     currentTab(nv, ov) {
       this.getFileList()
+    },
+    async projectId(nv, ov) {
+      await this.getCascader()
+      this.getFileList()
     }
   },
   data() {
@@ -158,7 +162,8 @@ export default {
     }
   },
   computed: {
-    ...mapState('uploadFile', ['successList', 'uploadVisible', 'errorList', 'fileList'])
+    ...mapState('uploadFile', ['successList', 'uploadVisible', 'errorList', 'fileList']),
+    ...mapState('layout', ['projectId'])
   },
   filters: {
     timeFormat(timestr) {