feat(login): 优化表单自动填充

This commit is contained in:
PKC278
2026-01-08 16:24:09 +08:00
parent 01835c0ac5
commit c17365b6c9

View File

@@ -459,6 +459,7 @@ onMounted(async () => {
:label="t('login.username')"
type="text"
name="username"
id="username"
autocomplete="username"
:rules="[requiredValidator]"
hide-details
@@ -470,7 +471,8 @@ onMounted(async () => {
v-model="form.password"
:label="t('login.password')"
:type="isPasswordVisible ? 'text' : 'password'"
name="current-password"
name="password"
id="password"
autocomplete="current-password"
:append-inner-icon="isPasswordVisible ? 'mdi-eye-off-outline' : 'mdi-eye-outline'"
:rules="[requiredValidator]"
@@ -527,8 +529,10 @@ onMounted(async () => {
:label="t('login.otpCode')"
:placeholder="t('login.otpPlaceholder')"
type="text"
inputmode="numeric"
name="otp"
id="otp"
autocomplete="one-time-code"
inputmode="numeric"
prepend-inner-icon="mdi-shield-key"
class="mb-2"
/>