scorpio 2 年之前
父節點
當前提交
0ab6c68236
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/home/component/params/params4.vue

+ 1 - 1
src/views/home/component/params/params4.vue

@@ -313,10 +313,10 @@ export default {
       window.open(routeUrl.href, '_blank')
       window.open(routeUrl.href, '_blank')
     },
     },
     initFileList(list) {
     initFileList(list) {
+      this.data = defaultData
       if (list && list.length === 0) {
       if (list && list.length === 0) {
         return
         return
       }
       }
-      this.data = defaultData
       this.data = this.data.map(sub => {
       this.data = this.data.map(sub => {
         const tmp = list.filter(ele => ele.type === sub.dispatchType)
         const tmp = list.filter(ele => ele.type === sub.dispatchType)
         if (tmp && tmp.length > 0) {
         if (tmp && tmp.length > 0) {