浏览代码

更新空间

liqk 3 年之前
父节点
当前提交
2378a18d11
共有 1 个文件被更改,包括 1 次插入0 次删除
  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.$set(this.sizeInfo, file.type, this.sizeInfo[file.type] || 0)
                     switch (file.type) {
                         case 'res':
                             this.sizeInfo.res += file.size