From c0c034b3ef0fdf0fd9c802d5984dbd717db6817a Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 06 九月 2023 17:54:55 +0800 Subject: [PATCH] 定制桌面. --- src/pages/vindicate/views/updateSettings.vue | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/pages/vindicate/views/updateSettings.vue b/src/pages/vindicate/views/updateSettings.vue index 26c58a2..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 @@ -194,7 +195,6 @@ <script> import { getDevInfo, - doUpgrade, checkNewVersion, upgradeNewVersion, uploadUpgradePkg, @@ -319,6 +319,13 @@ }); }, upgrade() { + if (!this.pkgID) { + this.$notify.error({ + title: "澶辫触", + message: "璇峰厛涓婁紶鏇存柊鍖�", + }); + return; + } this.shengjiing = true; upgradePkg({ id: this.pkgID, @@ -375,7 +382,7 @@ value: item.val, }).then((res) => { if (res.code == 200) { - this.$notify.success("鏇存柊鎴愬姛"); + this.$notify.success("閰嶇疆鎴愬姛"); } }); }, @@ -404,7 +411,6 @@ flex-shrink: 0; padding: 9px 10px 0 10px; border-right: 4px solid rgb(242, 242, 247); - .menu-item { height: 56px; margin-bottom: 4px; -- Gitblit v1.8.0