From 94a94ad1077e2724783fb9aa5cb0dea9d3ac309e Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 28 Aug 2025 17:37:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=B3=BB=E7=BB=9F=E5=8F=82=E6=95=B0):=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20SQLBot=20=E5=B5=8C=E5=85=A5=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/parameter/third-party/index.vue | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/core/core-frontend/src/views/system/parameter/third-party/index.vue b/core/core-frontend/src/views/system/parameter/third-party/index.vue index 54035074cd..04f0c524c6 100644 --- a/core/core-frontend/src/views/system/parameter/third-party/index.vue +++ b/core/core-frontend/src/views/system/parameter/third-party/index.vue @@ -24,7 +24,12 @@ const settingList = reactive([ sort: 3 } ]) -const info = ref({}) +const info = ref({ + id: '', + domain: '', + enabled: false, + valid: false +}) const mappingArray = ['domain', 'id'] const search = () => { const url = '/sysParameter/sqlbot' @@ -40,7 +45,7 @@ const search = () => { }) } -const switchEnableApi = enable => { +const switchEnableApi = () => { const param = { ...info.value } request.post({ url: '/sysParameter/sqlbot', data: param }) } @@ -54,14 +59,7 @@ const validate = () => { } const save = () => { const param = { ...info.value } - const method = request.post({ url: '/sysParameter/sqlbot', data: param }) - method - .then(res => { - console.log(res) - }) - .catch(() => { - console.log(res) - }) + request.post({ url: '/sysParameter/sqlbot', data: param }) } const validateHandler = () => { @@ -75,7 +73,7 @@ const validateHandler = () => { ElMessage.success(t('datasource.validate_success')) }) .catch(() => { - info.value.enable = false + info.value.enabled = false info.value.valid = false save() }) @@ -99,7 +97,7 @@ search()
- +
{{ t('system.access') }}