feat(cloud): add scoped support admin sessions

This commit is contained in:
dadachann
2026-07-31 07:25:33 +00:00
parent e1ac5e0fc8
commit b0ece9c455
25 changed files with 1285 additions and 25 deletions
+5 -1
View File
@@ -17,6 +17,7 @@ import {
bootstrapWorkspaceSession,
systemInfo,
initializeSystemInfo,
isSupportAdminSession,
useCurrentWorkspace,
} from '@/app/infra/http';
import { useNavigate, useLocation } from 'react-router-dom';
@@ -156,7 +157,10 @@ export default function HomeLayout({
// selected Workspace's wizard state.
useEffect(() => {
if (!identityReady) return;
if (systemInfo.wizard_status === 'none') {
if (
systemInfo?.wizard_status === 'none' &&
!isSupportAdminSession()
) {
navigate('/wizard', { replace: true });
}
}, [identityReady, navigate]);