forked from github/dataease
Merge pull request #2458 from dataease/pr@dev@fix_plugin_upload_error
fix: 安装插件错误提示简化
This commit is contained in:
commit
0722b86673
@ -118,6 +118,16 @@ export default {
|
|||||||
},
|
},
|
||||||
uploadFail(response, file, fileList) {
|
uploadFail(response, file, fileList) {
|
||||||
const msg = response && response.message || '安装失败'
|
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.$error(msg)
|
||||||
this.uploading = false
|
this.uploading = false
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user