Forráskód Böngészése

修复了创建项目时上传需求文档和安装包失败时仍会显示的问题

sunjh 5 éve
szülő
commit
1b1df6cf45

+ 2 - 1
src/components/project/Project.vue

@@ -577,7 +577,6 @@ export default {
             usage: this.project.usage,
           }
           Http.put(Apis.PROJECT.UPDATE_PROJECT.replace('{projectId}', this.projectId), newProject).then((res) => {
-            console.log('bb')
             console.log(res)
             this.projectId = res.projectDetails.id
             this.project.name = res.projectDetails.name
@@ -880,6 +879,7 @@ export default {
         notify('success', '需求文档上传成功')
       }).catch((error) => {
         this.hideLoading()
+        this.project.doc = []
         notify('error', '需求文档上传失败:' + error.data)
       })
     },
@@ -897,6 +897,7 @@ export default {
         notify('success', '文件上传成功')
       }).catch((error) => {
         this.hideLoading()
+        this.project.file = []
         notify('error', '文件上传失败')
       })
     },

+ 2 - 0
src/components/project/ProjectCreate.vue

@@ -461,6 +461,7 @@ export default {
         //console.log(res.data)
       }).catch((error) => {
         this.hideLoading()
+        this.project.doc = []
         notify('error', '需求文档上传失败:' + error.data)
       })
 
@@ -480,6 +481,7 @@ export default {
         console.log(res)
       }).catch((error) => {
         this.hideLoading()
+        this.project.file = []
         notify('error', '文件上传失败:' + error.data)
       })
     },