From fa3ac93010bea3805438ee3ab0a182bfbf7423da Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期一, 27 五月 2024 16:19:31 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/router/constant.ts | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/router/constant.ts b/src/router/constant.ts new file mode 100644 index 0000000..cd5908d --- /dev/null +++ b/src/router/constant.ts @@ -0,0 +1,24 @@ +export const REDIRECT_NAME = 'Redirect' + +export const PARENT_LAYOUT_NAME = 'ParentLayout' + +export const PAGE_NOT_FOUND_NAME = 'PageNotFound' + +export const EXCEPTION_COMPONENT = () => import('/@/views/sys/exception/Exception.vue') + +/** + * @description: default layout + */ +export const LAYOUT = () => import('/@/layouts/default/index.vue') + +/** + * @description: parent-layout + */ +export const getParentLayout = (_name?: string) => { + return () => + new Promise((resolve) => { + resolve({ + name: PARENT_LAYOUT_NAME, + }) + }) +} -- Gitblit v1.9.3