[FIX]影像上传-请求上传接口错误情况,抛出错误并提示,提示语修改

This commit is contained in:
yuweiqi
2020-04-22 09:36:16 +08:00
parent 8a3286fceb
commit 22d9c1d24f
2 changed files with 2 additions and 3 deletions

View File

@@ -319,7 +319,6 @@ export default {
} }
that.list.push(obj) that.list.push(obj)
} else { } else {
that.$toast(res.resultMessage || '图片上传失败,请重新上传图片')
switch (that.type) { switch (that.type) {
case 'fileListBank01': case 'fileListBank01':
this.fileListBank01.pop() this.fileListBank01.pop()
@@ -340,7 +339,7 @@ export default {
} }
}, },
error => { error => {
that.$toast('网络错误,图片上传失败') that.$toast('网络环境不佳,图片上传失败,请切换移动网络或稍后重试')
switch (that.type) { switch (that.type) {
case 'fileListBank01': case 'fileListBank01':
this.fileListBank01.pop() this.fileListBank01.pop()

View File

@@ -1029,7 +1029,7 @@ export default {
that.saleInsuredPersonInfoOther = [] that.saleInsuredPersonInfoOther = []
break break
} }
this.$toast('网络错误,图片上传失败') this.$toast('网络环境不佳,图片上传失败,请切换移动网络或稍后重试')
} }
) )
}, },