From 18f9e424977871a9cca913b873745ccb1bd1f679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Thu, 9 Oct 2025 18:43:57 +0800 Subject: [PATCH] 1 --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } /**