From 0ede92a2e555d6ff51a0026bc1ee843329b83933 Mon Sep 17 00:00:00 2001 From: LiuHao <liuhaoai545@gmail.com> Date: 星期三, 24 五月 2023 11:20:52 +0800 Subject: [PATCH] Merge branch 'ts' into dev --- src/views/system/oss/index.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/system/oss/index.vue b/src/views/system/oss/index.vue index 3ee9673..4cf6484 100644 --- a/src/views/system/oss/index.vue +++ b/src/views/system/oss/index.vue @@ -318,10 +318,12 @@ /** 鐢ㄦ埛鐘舵�佷慨鏀� */ const handlePreviewListResource = async (preview: boolean) => { let text = preview ? "鍚敤" : "鍋滅敤"; - await proxy?.$modal.confirm('纭瑕�"' + text + '""棰勮鍒楄〃鍥剧墖"閰嶇疆鍚�?'); - await proxy?.updateConfigByKey("sys.oss.previewListResource", preview); - getList() - proxy?.$modal.msgSuccess(text + "鎴愬姛"); + try { + await proxy?.$modal.confirm('纭瑕�"' + text + '""棰勮鍒楄〃鍥剧墖"閰嶇疆鍚�?'); + await proxy?.updateConfigByKey("sys.oss.previewListResource", preview); + getList() + proxy?.$modal.msgSuccess(text + "鎴愬姛"); + } catch { return } } /** 鍒犻櫎鎸夐挳鎿嶄綔 */ const handleDelete = async (row?: OssVO) => { -- Gitblit v1.9.3