新增示例demo

This commit is contained in:
啊俊
2021-07-15 23:51:18 +08:00
parent 8fd663e0e5
commit a6aa6d4d6d
18 changed files with 428 additions and 34 deletions

View File

@@ -1,24 +1,6 @@
import { MainView } from '@/layout/components/Main'
export const RedirectName = 'Redirect';
export const ParentLayout = 'ParentLayout';
export const ErrorPage = () => import('@/views/exception/404.vue');
/**
* @description: default layout
*/
export const Layout = () => import('@/layout/index.vue');
/**
* @description: parent-layout
*/
export const getParentLayout = (_name?: string) => {
return () =>
new Promise((resolve) => {
resolve({
name: PARENT_LAYOUT_NAME,
});
});
};