feat: 記住帳號, 忘記密碼開關

This commit is contained in:
skytek_xinliang
2026-05-22 10:43:17 +08:00
parent 8378c44ad7
commit f3eb9782c6
3 changed files with 43 additions and 2 deletions
+6
View File
@@ -87,6 +87,8 @@ const illustrationImage = ref(HyakkaouAcademyImage)
const formPositionLayout = ref<LayoutType>('side-left')
// 是否啟用公告
const withAnnouncement = ref(true)
const withForgotPassword = ref(true)
const withRememberAccount = ref(true)
// 功能開關:是否啟用驗證碼
const withCaptcha = ref(true)
@@ -154,6 +156,8 @@ const form = computed(() => ({
captchaPlaceholder: captchaPlaceholder.value,
refreshTitle: refreshTitle.value,
rememberStorageKey: rememberStorageKey.value,
withForgotPassword: withForgotPassword.value,
withRememberAccount: withRememberAccount.value,
// 功能開關:是否顯示驗證碼
withCaptcha: withCaptcha.value,
captcha: loginCaptcha.formCaptcha.value,
@@ -178,6 +182,8 @@ const toolbar = computed(() => ({
// 事件處理
function handleForgotPassword(e: MouseEvent) {
if (!withForgotPassword.value) return
console.log('Forgot Password Click:', e)
}