From 9b2cf4fb255e2a21b6399e0529d87643fe9be7a2 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 20 May 2026 10:20:14 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20SQLBot=20=E5=B5=8C=E5=85=A5=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=A0=A1=E9=AA=8C=E5=A4=B1=E8=B4=A5=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/parameter/third-party/ThirdEdit.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/system/parameter/third-party/ThirdEdit.vue b/core/core-frontend/src/views/system/parameter/third-party/ThirdEdit.vue index 0978516e36..1f873dc1a7 100644 --- a/core/core-frontend/src/views/system/parameter/third-party/ThirdEdit.vue +++ b/core/core-frontend/src/views/system/parameter/third-party/ThirdEdit.vue @@ -74,14 +74,16 @@ const save = () => { }) } -const saveClose = () => { +const saveClose = (showMsg: boolean) => { const param = { ...state.form } const method = request.post({ url: '/sysParameter/sqlbot', data: param }) showLoading() method .then(res => { if (!res.msg) { - ElMessage.success(t('common.save_success')) + if (showMsg) { + ElMessage.success(t('common.save_success')) + } emits('saved') } closeLoading() @@ -148,7 +150,7 @@ const validateHandlerOnly = () => { state.form.valid = false }) .finally(() => { - saveClose() + saveClose(false) }) }