chore: add offline page

This commit is contained in:
vben
2024-06-09 18:58:30 +08:00
parent 640ad6d9e7
commit 5d829a6d9a
18 changed files with 238 additions and 91 deletions

View File

@@ -35,7 +35,7 @@
"@vben/styles": "workspace:*",
"@vben/types": "workspace:*",
"@vben/utils": "workspace:*",
"@vueuse/core": "^10.10.1",
"@vueuse/core": "^10.11.0",
"ant-design-vue": "^4.2.3",
"axios": "^1.7.2",
"dayjs": "^1.11.11",

View File

@@ -42,6 +42,15 @@ const routes: RouteRecordRaw[] = [
title: '500',
},
},
{
name: 'FallbackOffline',
path: 'offline',
component: () => import('@/views/_essential/fallback/offline.vue'),
meta: {
icon: 'mdi:offline',
title: $t('fallback.offline'),
},
},
],
},
];

View File

@@ -0,0 +1,7 @@
<script lang="ts" setup>
import { Fallback } from '@vben/common-ui';
</script>
<template>
<Fallback status="offline" />
</template>