From 4b9253f525433c2301656e8c32711442a8cd4a00 Mon Sep 17 00:00:00 2001
From: wxg0103 <727495428@qq.com>
Date: Mon, 28 Oct 2024 10:54:09 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ui/src/views/authentication/component/EditModal.vue | 4 ++--
ui/src/views/authentication/component/SCAN.vue | 1 +
ui/src/views/login/components/wecomQrCode.vue | 11 +++++++++--
3 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/ui/src/views/authentication/component/EditModal.vue b/ui/src/views/authentication/component/EditModal.vue
index 122cffeb8..6c429485c 100644
--- a/ui/src/views/authentication/component/EditModal.vue
+++ b/ui/src/views/authentication/component/EditModal.vue
@@ -152,11 +152,11 @@ function validateConnection() {
const passwordFields = new Set(['app_secret', 'client_secret', 'secret'])
const isPasswordField = (key: any) => passwordFields.has(key)
-
+const emit = defineEmits(['refresh'])
function saveConfig() {
platformApi.updateConfig(currentPlatform, loading).then((res: any) => {
MsgSuccess('保存成功')
-
+ emit('refresh')
visible.value = false
formRef.value?.clearValidate()
})
diff --git a/ui/src/views/authentication/component/SCAN.vue b/ui/src/views/authentication/component/SCAN.vue
index 86a78ca5c..c0d254def 100644
--- a/ui/src/views/authentication/component/SCAN.vue
+++ b/ui/src/views/authentication/component/SCAN.vue
@@ -158,6 +158,7 @@ function formatFieldName(key?: any): string {
}
function getPlatformInfo() {
+ loading.value = true
platformApi.getPlatformInfo(loading).then((res: any) => {
if (res) {
platforms.forEach((platform) => {
diff --git a/ui/src/views/login/components/wecomQrCode.vue b/ui/src/views/login/components/wecomQrCode.vue
index b4997c4f2..2892e816a 100644
--- a/ui/src/views/login/components/wecomQrCode.vue
+++ b/ui/src/views/login/components/wecomQrCode.vue
@@ -1,5 +1,5 @@
-
+
-
+