diff --git a/src/index.js b/src/index.js index a9fc8b4..13796d4 100644 --- a/src/index.js +++ b/src/index.js @@ -281,14 +281,14 @@ class AdminFramework { * @returns {Object} main route config */ getRoutes(components = {}) { - const { Main, ParentView, Page404 } = components + const { Main, ParentView, Page404, HomePage } = components if (!Main || !ParentView || !Page404) { console.error('Missing required layout components') return null } - return uiTool.getRoutes(Main, ParentView, Page404) + return uiTool.getRoutes(Main, ParentView, Page404, HomePage || this.HomePage) } /**