fix: restore control center home

This commit is contained in:
2026-06-21 20:09:19 +08:00
parent 61f164a6f8
commit 75f8ffd47f
8 changed files with 27 additions and 31 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ function setupAccessGuard(router: Router) {
if (to.path === subAppRootPath) {
const defaultHome =
preferences.app.defaultHomePath || '/dashboard/workspace';
preferences.app.defaultHomePath || '/page-render/main_home';
// 确保路径包含子应用前缀
const subAppTargetPath = defaultHome.startsWith(subAppRootPath)
? defaultHome
@@ -5,7 +5,7 @@ const routes: RouteRecordRaw[] = [
meta: { hideInMenu: true },
name: 'ControlCenterLegacyRedirect',
path: '/control-center',
redirect: '/dashboard/workspace',
redirect: '/page-render/main_home',
},
{
meta: {
@@ -14,7 +14,7 @@ const routes: RouteRecordRaw[] = [
},
name: 'PageRenderMainHome',
path: '/page-render/main_home',
redirect: '/dashboard/workspace',
component: () => import('#/views/_core/page-render/index.vue'),
},
{
meta: { hideInMenu: true },