Collapse if-only-in-else to else-if (S6660)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 07:37:57 +08:00
parent 4cd61aed0d
commit cb22ce72c1

View File

@@ -411,10 +411,8 @@ watch(
if (newPwd.length < PWD_VALID_LENGTH) { if (newPwd.length < PWD_VALID_LENGTH) {
isConfirmDisabled.value = true; isConfirmDisabled.value = true;
} }
} else { } else if (isResetPwdSectionShow.value && newPwd.length < PWD_VALID_LENGTH) {
if (isResetPwdSectionShow.value && newPwd.length < PWD_VALID_LENGTH) { isConfirmDisabled.value = true;
isConfirmDisabled.value = true;
}
} }
}, },
); );