Prechádzať zdrojové kódy

附件管理树形结构默认展开

lizhenhao 2 rokov pred
rodič
commit
e7fd9ed10c

+ 3 - 0
src/views/modules/program/configuration/fileDict/FileDictList.vue

@@ -19,6 +19,7 @@
       </vxe-toolbar>
       <div style="height: calc(100% - 50px)">
         <vxe-table
+          :key="tableKey"
           border="inner"
           auto-resize
           resizable
@@ -73,6 +74,7 @@
           pageSize: 10,
           orders: []
         },
+        tableKey: '',
         loading: false
       }
     },
@@ -125,6 +127,7 @@
         }).then(({data}) => {
           this.dataList = data.records
           this.tablePage.total = data.total
+          this.tableKey = Math.random()
           this.loading = false
         })
       },