chore: update locale

This commit is contained in:
vben
2024-06-29 15:41:10 +08:00
parent 36a4fcfad2
commit c58aa26dbf
35 changed files with 531 additions and 523 deletions

View File

@@ -16,7 +16,7 @@ interface FallbackProps {
/**
* @zh_CN 内置类型
*/
status?: '403' | '404' | '500' | 'hello' | 'offline';
status?: '403' | '404' | '500' | 'comming-soon' | 'offline';
/**
* @zh_CN 页面提示语
*/

View File

@@ -19,14 +19,16 @@ const props = withDefaults(defineProps<Props>(), {
homePath: '/',
image: '',
showBack: true,
status: 'hello',
status: 'comming-soon',
title: '',
});
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-hello.vue'));
const IconHello = defineAsyncComponent(
() => import('./icons/icon-comming-soon.vue'),
);
const IconOffline = defineAsyncComponent(
() => import('./icons/icon-offline.vue'),
);
@@ -49,7 +51,7 @@ const titleText = computed(() => {
case 'offline': {
return $t('fallback.offline-error');
}
case 'hello': {
case 'comming-soon': {
return $t('fallback.coming-soon');
}
default: {
@@ -95,7 +97,7 @@ const fallbackIcon = computed(() => {
case 'offline': {
return IconOffline;
}
case 'hello': {
case 'comming-soon': {
return IconHello;
}
default: {