From e50b7721b1e38d457a3c4b82af0be83e5096cdb5 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 10 Sep 2025 15:52:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E5=B5=8C=E5=85=A5=E5=8F=AA=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E4=B8=8D=E9=AA=8C=E8=AF=81=E7=9A=84=E6=83=85=E5=86=B5=E4=BC=9A?= =?UTF-8?q?=E6=94=B9=E5=8F=98=E5=BA=94=E7=94=A8=E7=8A=B6=E6=80=81=E5=B9=B6?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/parameter/third-party/ThirdEdit.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 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 df65ee9d75..2d2d695b79 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 @@ -11,6 +11,8 @@ const dingtalkForm = ref() interface DingtalkForm { id?: string domain?: string + valid?: boolean + enabled?: boolean } const state = reactive({ form: reactive({ @@ -18,7 +20,7 @@ const state = reactive({ domain: null }) }) -const validateUrl = (rule, value, callback) => { +const validateUrl = (_, value, callback) => { const reg = new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/) if (!reg.test(value)) { callback(new Error(t('system.incorrect_please_re_enter'))) @@ -44,10 +46,12 @@ const rule = reactive({ ] }) -const edit = row => { +const edit = ({ id, domain, valid, enabled }) => { state.form = { - id: row.id, - domain: row.domain + id, + domain, + valid, + enabled } dialogVisible.value = true } @@ -117,7 +121,7 @@ const validateHandler = () => { ElMessage.success(t('datasource.validate_success')) }) .catch(() => { - state.form.enable = false + state.form.enabled = false state.form.valid = false save() })