Skip to content

Commit

Permalink
feat: #27 使用插件系统挂载菜单-优化插件系统集成
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Mar 4, 2023
1 parent 983a859 commit 540ea57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/apps/zhi/Lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
* questions.
*/

import loadOtherlib from "~/src/utils/otherlib/loadOtherlib"
import pluginSystem from "~/src/apps/zhi/plugin-system"

/**
* zhi主题统一生命周期管理
*
* @author terwer
* @since 0.0.1
* @since 1.0.0
*/
class Lifecycle {
private _dynamicImports = <string[]>[]
Expand Down Expand Up @@ -57,7 +57,7 @@ class Lifecycle {
* @private
*/
private loadPluginSystem(): string[] {
return loadOtherlib.loadPluginSystemScript()
return pluginSystem.initPluginSystem()
}

/**
Expand All @@ -66,7 +66,7 @@ class Lifecycle {
* @private
*/
private loadWidgets(): string[] {
return loadOtherlib.loadWidgetsScript()
return []
}

/**
Expand All @@ -75,8 +75,8 @@ class Lifecycle {
* @private
*/
private loadVendors(): string[] {
return loadOtherlib.loadVendorsScript()
return []
}
}

export default Lifecycle
export default Lifecycle

0 comments on commit 540ea57

Please sign in to comment.