fix(login): 忘记密码链接加提示,避免点击无响应

This commit is contained in:
Zhou Weidong committed 2026-10-20 09:15:19 +08:00
1 parent d283d223c0
commit 1737f37d82
3 files changed
+8 -2

No files matched your search

+6 -2
View File
@@ -4,7 +4,7 @@
import { reactive, ref, watch, onMounted, unref } from 'vue'
import { Form, FormSchema } from '@/components/Form'
import { useI18n } from '@/hooks/web/useI18n'
import { ElCheckbox, ElLink } from 'element-plus'
import { ElCheckbox, ElLink, ElMessage } from 'element-plus'
import { useForm } from '@/hooks/web/useForm'
import { loginApi, getAdminRoleApi } from '@/api/login'
import { useAppStore } from '@/store/modules/app'
@@ -92,7 +92,11 @@ const schema = reactive<FormSchema[]>([
<>
<div class="flex justify-between items-center w-[100%]">
<ElCheckbox v-model={remember.value} label={t('login.remember')} size="small" />
<ElLink type="primary" underline={false}>
<ElLink
type="primary"
underline={false}
onClick={() => ElMessage.info(t('login.forgetPasswordHint'))}
>
{t('login.forgetPassword')}
</ElLink>
</div>