fix: some bugs
This commit is contained in:
@@ -81,7 +81,7 @@ function handleGo(path: string) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<div @keypress.enter="handleSubmit">
|
||||
<Title>
|
||||
{{ $t('authentication.welcome-back') }} 👋🏻
|
||||
<template #desc>
|
||||
@@ -99,8 +99,8 @@ function handleGo(path: string) {
|
||||
name="username"
|
||||
:placeholder="$t('authentication.username')"
|
||||
type="text"
|
||||
required
|
||||
:autofocus="false"
|
||||
@keyup.enter="handleSubmit"
|
||||
/>
|
||||
<VbenInputPassword
|
||||
v-model="formState.password"
|
||||
@@ -111,7 +111,6 @@ function handleGo(path: string) {
|
||||
:placeholder="$t('authentication.password')"
|
||||
required
|
||||
type="password"
|
||||
@keyup.enter="handleSubmit"
|
||||
/>
|
||||
|
||||
<div class="mb-6 mt-4 flex justify-between">
|
||||
|
@@ -19,7 +19,7 @@ defineOptions({
|
||||
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
disabled: boolean;
|
||||
disabled?: boolean;
|
||||
items?: SelectListItem[];
|
||||
placeholder?: string;
|
||||
}>(),
|
||||
|
@@ -8,7 +8,7 @@ defineOptions({
|
||||
name: 'PreferenceSwitchItem',
|
||||
});
|
||||
|
||||
withDefaults(defineProps<{ disabled: boolean }>(), {
|
||||
withDefaults(defineProps<{ disabled?: boolean }>(), {
|
||||
disabled: false,
|
||||
});
|
||||
|
||||
|
@@ -7,7 +7,7 @@ defineOptions({
|
||||
name: 'PreferenceToggleItem',
|
||||
});
|
||||
|
||||
withDefaults(defineProps<{ disabled: boolean; items: SelectListItem[] }>(), {
|
||||
withDefaults(defineProps<{ disabled?: boolean; items: SelectListItem[] }>(), {
|
||||
disabled: false,
|
||||
items: () => [],
|
||||
});
|
||||
|
Reference in New Issue
Block a user