fix: restore control center home
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user