mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-10 18:53:44 +08:00
refactor(projects): rename union key
This commit is contained in:
@@ -9,13 +9,13 @@ interface ModuleComponent {
|
||||
default: RouteComponent;
|
||||
}
|
||||
|
||||
type LayoutComponent = Record<UnionKey.LayoutComponentName, Lazy<ModuleComponent>>;
|
||||
type LayoutComponent = Record<UnionKey.LayoutComponentType, Lazy<ModuleComponent>>;
|
||||
|
||||
/**
|
||||
* 获取布局的vue文件(懒加载的方式)
|
||||
* @param layoutType - 布局类型
|
||||
*/
|
||||
export function getLayoutComponent(layoutType: UnionKey.LayoutComponentName) {
|
||||
export function getLayoutComponent(layoutType: UnionKey.LayoutComponentType) {
|
||||
const layoutComponent: LayoutComponent = {
|
||||
basic: BasicLayout,
|
||||
blank: BlankLayout
|
||||
|
||||
Reference in New Issue
Block a user