From 409db1e1113c8a356ff38358b51288a45e517700 Mon Sep 17 00:00:00 2001 From: xue jiahao Date: Tue, 13 May 2025 15:41:37 +0800 Subject: [PATCH] bugifx --- frontend/src/pages/TenantDomain.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/TenantDomain.vue b/frontend/src/pages/TenantDomain.vue index 07317ae..3e801e4 100644 --- a/frontend/src/pages/TenantDomain.vue +++ b/frontend/src/pages/TenantDomain.vue @@ -409,11 +409,12 @@ const stopConnect = () => { const onSubmit = async () => { addEditLoading.value = true; - const tryResult = await tryConnect(false); - if (!tryResult) { + try { + await tryConnect(false); + } catch (e) { addEditLoading.value = false; - return - }; + return; + } const method = editId.value !== 0 ? 'put' : 'post'; const param: IDomainSubmit = { 'id': editId.value,