diff --git a/frontend/src/views/system/plugin/index.vue b/frontend/src/views/system/plugin/index.vue index 794e8bde69..0688c6b4d5 100644 --- a/frontend/src/views/system/plugin/index.vue +++ b/frontend/src/views/system/plugin/index.vue @@ -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 },