From 049da9ea697e06d8f4386fe2a469a723b35da088 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Wed, 4 Sep 2024 09:39:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E9=A1=B9=E7=A7=9F=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common-ui/src/ui/authentication/login.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/effects/common-ui/src/ui/authentication/login.vue b/packages/effects/common-ui/src/ui/authentication/login.vue index aa7f257d..7aef2fc3 100644 --- a/packages/effects/common-ui/src/ui/authentication/login.vue +++ b/packages/effects/common-ui/src/ui/authentication/login.vue @@ -108,12 +108,15 @@ watch( /** * 默认选中第一项租户 */ -const stop = watch(props.tenantOptions, (options) => { - if (options.length > 0) { - formState.tenantId = options[0]!.tenantId; - stop(); - } -}); +const stop = watch( + () => props.tenantOptions, + (options) => { + if (options.length > 0) { + formState.tenantId = options[0]!.tenantId; + stop(); + } + }, +); const usernameStatus = computed(() => { return formState.submitted && !formState.username ? 'error' : 'default';