From 4e256ce68f7548bf15bc8e523a3cd9d7272ea964 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 21 Jun 2022 10:02:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=89=E8=A3=85=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA=E7=AE=80=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/plugin/index.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 },