From a8ad928324da550605295118681e4123a274cdef Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期一, 29 五月 2023 10:26:23 +0800
Subject: [PATCH] !9 代码生成,数据名称从后台加载 Merge pull request !9 from WangBQ/ts

---
 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 4dddd37..24d637d 100644
--- a/src/views/system/oss/index.vue
+++ b/src/views/system/oss/index.vue
@@ -316,10 +316,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