Browse Source

修复仓库删除bug

shaogen1995 4 years ago
parent
commit
bb9f22d151
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/views/statistics/statistics0.vue

+ 7 - 2
src/views/statistics/statistics0.vue

@@ -259,11 +259,16 @@ export default {
         // console.log(666, this.allList[this.arrowsShow].children[this.entrepotShow].id)
         remove(this.allList[this.arrowsShow].children[this.entrepotShow].id)
         this.entrepotShow = 0
-        this.arrowsShow = null
-        this.towList.name = ''
+        // this.arrowsShow = null
+        // this.towList.name = ''
         this.$nextTick(() => {
           setTimeout(() => {
             this.getTreeList()
+            setTimeout(() => {
+              if (this.allList[this.arrowsShow].children) this.towList = this.allList[this.arrowsShow].children[0]
+              else this.towList.name = ''
+              // console.log(999, this.allList[this.arrowsShow].children.length)
+            }, 100)
           }, 100)
         })
         this.$message({