feat: 記住帳號, 忘記密碼開關
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user