Merge pull request #2458 from dataease/pr@dev@fix_plugin_upload_error

fix: 安装插件错误提示简化
This commit is contained in:
fit2cloud-chenyw 2022-06-21 10:05:22 +08:00 committed by GitHub
commit 0722b86673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
},