NewLife/cube-front

feat(layout): 引入 CyberLayout 组件并更新应用配置选项类型
何炳宏 authored at 2026-06-05 17:56:07
10ad388
Tree
1 Parent(s) 1eb178f
Summary: 1 changed files with 2 additions and 1 deletions.
Modified +2 -1
Modified +2 -1
diff --git a/core/initApp.ts b/core/initApp.ts
index b4456dd..792e92e 100644
--- a/core/initApp.ts
+++ b/core/initApp.ts
@@ -51,6 +51,7 @@ import {
 import { currentComponent } from './composables/useLayout';
 import { registerPageSections } from './utils/pageSections';
 import autoSectionModules from 'virtual:cube-front-sections';
+import CyberLayout from './layouts/CyberLayout/index.vue';
 
 /**
  * 应用配置选项接口
@@ -114,7 +115,7 @@ export type ConfigureFunction = (
  */
 export interface InitAppOptions {
   configure?: ConfigureFunction;
-  sections?: Record<string, () => Promise<{ default: unknown }>>;
+  sections?: Record<string, () => Promise<{ default: unknown; }>>;
 }
 
 /**