From 2b7ffdf19c0e525f03dc6234b58cac03b627f0a5 Mon Sep 17 00:00:00 2001
From: thiszhc <2029364173@qq.com>
Date: 星期六, 01 七月 2023 02:26:58 +0800
Subject: [PATCH] 前端实现切换租户选择第三方授权登录,和优化第三方页面登录注册

---
 src/views/system/oss/index.vue |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/views/system/oss/index.vue b/src/views/system/oss/index.vue
index 8bd94ee..24d637d 100644
--- a/src/views/system/oss/index.vue
+++ b/src/views/system/oss/index.vue
@@ -317,15 +317,11 @@
 const handlePreviewListResource = async (preview: boolean) => {
     let text = preview ? "鍚敤" : "鍋滅敤";
     try {
-        await proxy?.$modal.confirm('纭瑕�"' + text + '""棰勮鍒楄〃鍥剧墖"閰嶇疆鍚�?');
-        await proxy?.updateConfigByKey("sys.oss.previewListResource", preview);
-        getList()
-        proxy?.$modal.msgSuccess(text + "鎴愬姛");
-    } catch {
-        previewListResource.value = previewListResource.value !== true;
-    }
-
-
+      await proxy?.$modal.confirm('纭瑕�"' + text + '""棰勮鍒楄〃鍥剧墖"閰嶇疆鍚�?');
+      await proxy?.updateConfigByKey("sys.oss.previewListResource", preview);
+      getList()
+      proxy?.$modal.msgSuccess(text + "鎴愬姛");
+    } catch { return }
 }
 /** 鍒犻櫎鎸夐挳鎿嶄綔 */
 const handleDelete = async (row?: OssVO) => {
@@ -336,6 +332,7 @@
     getList();
     proxy?.$modal.msgSuccess("鍒犻櫎鎴愬姛");
 }
+
 onMounted(() => {
     getList();
 })

--
Gitblit v1.9.3