fix: typos
parent
3a7b5c2965
commit
91e769e53e
|
@ -175,10 +175,10 @@ function calcSliceIndex() {
|
|||
}
|
||||
|
||||
function debounce(fn: () => void, wait = 33.34) {
|
||||
let timmer: ReturnType<typeof setTimeout> | null;
|
||||
let timer: ReturnType<typeof setTimeout> | null;
|
||||
return () => {
|
||||
timmer && clearTimeout(timmer);
|
||||
timmer = setTimeout(() => {
|
||||
timer && clearTimeout(timer);
|
||||
timer = setTimeout(() => {
|
||||
fn();
|
||||
}, wait);
|
||||
};
|
||||
|
|
|
@ -42,7 +42,7 @@ const emailStatus = computed(() => {
|
|||
return formState.submitted && !formState.email ? 'error' : 'default';
|
||||
});
|
||||
|
||||
function handleSubmut() {
|
||||
function handleSubmit() {
|
||||
formState.submitted = true;
|
||||
if (emailStatus.value !== 'default') {
|
||||
return;
|
||||
|
@ -76,7 +76,7 @@ function goToLogin() {
|
|||
/>
|
||||
</div>
|
||||
<div>
|
||||
<VbenButton class="mt-2 w-full" @click="handleSubmut">
|
||||
<VbenButton class="mt-2 w-full" @click="handleSubmit">
|
||||
{{ $t('authentication.sendResetLink') }}
|
||||
</VbenButton>
|
||||
<VbenButton class="mt-4 w-full" variant="outline" @click="goToLogin()">
|
||||
|
|
|
@ -43,7 +43,7 @@ const router = useRouter();
|
|||
|
||||
const formState = reactive({
|
||||
agreePolicy: false,
|
||||
comfirmPassword: '',
|
||||
confirmPassword: '',
|
||||
password: '',
|
||||
submitted: false,
|
||||
username: '',
|
||||
|
@ -57,8 +57,8 @@ const passwordStatus = computed(() => {
|
|||
return formState.submitted && !formState.password ? 'error' : 'default';
|
||||
});
|
||||
|
||||
const comfirmPasswordStatus = computed(() => {
|
||||
return formState.submitted && formState.password !== formState.comfirmPassword
|
||||
const confirmPasswordStatus = computed(() => {
|
||||
return formState.submitted && formState.password !== formState.confirmPassword
|
||||
? 'error'
|
||||
: 'default';
|
||||
});
|
||||
|
@ -116,12 +116,12 @@ function goToLogin() {
|
|||
</VbenInputPassword>
|
||||
|
||||
<VbenInputPassword
|
||||
v-model="formState.comfirmPassword"
|
||||
v-model="formState.confirmPassword"
|
||||
:error-tip="$t('authentication.confirmPasswordTip')"
|
||||
:label="$t('authentication.confirmPassword')"
|
||||
:placeholder="$t('authentication.confirmPassword')"
|
||||
:status="comfirmPasswordStatus"
|
||||
name="comfirmPassword"
|
||||
:status="confirmPasswordStatus"
|
||||
name="confirmPassword"
|
||||
required
|
||||
type="password"
|
||||
/>
|
||||
|
|
|
@ -16,7 +16,7 @@ interface FallbackProps {
|
|||
/**
|
||||
* @zh_CN 内置类型
|
||||
*/
|
||||
status?: '403' | '404' | '500' | 'comming-soon' | 'offline';
|
||||
status?: '403' | '404' | '500' | 'coming-soon' | 'offline';
|
||||
/**
|
||||
* @zh_CN 页面提示语
|
||||
*/
|
||||
|
|
|
@ -19,7 +19,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|||
homePath: '/',
|
||||
image: '',
|
||||
showBack: true,
|
||||
status: 'comming-soon',
|
||||
status: 'coming-soon',
|
||||
title: '',
|
||||
});
|
||||
|
||||
|
@ -27,7 +27,7 @@ const Icon403 = defineAsyncComponent(() => import('./icons/icon-403.vue'));
|
|||
const Icon404 = defineAsyncComponent(() => import('./icons/icon-404.vue'));
|
||||
const Icon500 = defineAsyncComponent(() => import('./icons/icon-500.vue'));
|
||||
const IconHello = defineAsyncComponent(
|
||||
() => import('./icons/icon-comming-soon.vue'),
|
||||
() => import('./icons/icon-coming-soon.vue'),
|
||||
);
|
||||
const IconOffline = defineAsyncComponent(
|
||||
() => import('./icons/icon-offline.vue'),
|
||||
|
@ -51,7 +51,7 @@ const titleText = computed(() => {
|
|||
case 'offline': {
|
||||
return $t('fallback.offlineError');
|
||||
}
|
||||
case 'comming-soon': {
|
||||
case 'coming-soon': {
|
||||
return $t('fallback.comingSoon');
|
||||
}
|
||||
default: {
|
||||
|
@ -97,7 +97,7 @@ const fallbackIcon = computed(() => {
|
|||
case 'offline': {
|
||||
return IconOffline;
|
||||
}
|
||||
case 'comming-soon': {
|
||||
case 'coming-soon': {
|
||||
return IconHello;
|
||||
}
|
||||
default: {
|
||||
|
|
|
@ -8,7 +8,7 @@ import { Menu, MenuProps } from '@vben-core/menu-ui';
|
|||
import { useNavigation } from './use-navigation';
|
||||
|
||||
interface Props extends MenuProps {
|
||||
collspae?: boolean;
|
||||
collapse?: boolean;
|
||||
menus: MenuRecordRaw[];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue