Browse Source

更新空间

liqk 3 years ago
parent
commit
2378a18d11
1 changed files with 1 additions and 0 deletions
  1. 1 0
      TEAMModelOS/ClientApp/src/view/teachcontent/index.vue

+ 1 - 0
TEAMModelOS/ClientApp/src/view/teachcontent/index.vue

@@ -486,6 +486,7 @@ export default {
                     }
                     }
                     //更新空间
                     //更新空间
                     this.sizeInfo.total += file.size
                     this.sizeInfo.total += file.size
+                    this.$set(this.sizeInfo, file.type, this.sizeInfo[file.type] || 0)
                     switch (file.type) {
                     switch (file.type) {
                         case 'res':
                         case 'res':
                             this.sizeInfo.res += file.size
                             this.sizeInfo.res += file.size