feat(projects): add new route plugin @soybeanjs/vite-plugin-vue-page-route [集成新的路由插件]

This commit is contained in:
Soybean
2023-01-15 23:32:40 +08:00
parent f71812d622
commit 3131e00f0f
9 changed files with 357 additions and 172 deletions

View File

@ -1,6 +1,9 @@
import type { RouteComponent } from 'vue-router';
export const views: Record<RouterPage.LastDegreeRouteKey, RouteComponent | (() => Promise<RouteComponent>)> = {
export const views: Record<
PageRoute.LastDegreeRouteKey,
RouteComponent | (() => Promise<{ default: RouteComponent }>)
> = {
403: () => import('./_builtin/403/index.vue'),
404: () => import('./_builtin/404/index.vue'),
500: () => import('./_builtin/500/index.vue'),