fix: 安装插件错误提示简化

This commit is contained in:
fit2cloud-chenyw 2022-06-21 10:02:06 +08:00
parent 3cf23370fe
commit 4e256ce68f

View File

@ -118,6 +118,16 @@ export default {
},
uploadFail(response, file, fileList) {
const msg = response && response.message || '安装失败'
try {
const result = JSON.parse(msg)
if (result && result.message) {
this.$error(result.message)
this.uploading = false
}
return
} catch (e) {
console.error(e)
}
this.$error(msg)
this.uploading = false
},