From 4a800a8fc83c6bd1f86a8e847b079a51a7532c09 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 20 七月 2022 15:05:58 +0800 Subject: [PATCH] 修复国标配置的bug --- src/pages/vindicate/views/updateSettings.vue | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/pages/vindicate/views/updateSettings.vue b/src/pages/vindicate/views/updateSettings.vue index 4ec1f9b..0756a4a 100644 --- a/src/pages/vindicate/views/updateSettings.vue +++ b/src/pages/vindicate/views/updateSettings.vue @@ -118,6 +118,7 @@ v-show="!shengjiing && upStatus === ''" :http-request="uploadPkg" :limit="1" + accept=".zip,.tar,.gz,.tar.gz" > <i class="el-icon-upload"></i> <div @@ -318,6 +319,13 @@ }); }, upgrade() { + if (!this.pkgID) { + this.$notify.error({ + title: "澶辫触", + message: "璇峰厛涓婁紶鏇存柊鍖�", + }); + return; + } this.shengjiing = true; upgradePkg({ id: this.pkgID, @@ -374,7 +382,7 @@ value: item.val, }).then((res) => { if (res.code == 200) { - this.$notify.success("鏇存柊鎴愬姛"); + this.$notify.success("閰嶇疆鎴愬姛"); } }); }, -- Gitblit v1.8.0