|
|
@@ -124,13 +124,6 @@ export async function getInitialState(): Promise<{
|
|
|
// SSO 回调页面不需要获取用户信息,等待换码完成
|
|
|
const isSSOCallback = location.pathname.startsWith('/auth/callback');
|
|
|
|
|
|
- // hash 路由模式下,SSO 平台回调 URL 不带 hash,
|
|
|
- // 需要把 /auth/callback?code=xxx 转为 /auth/callback#/auth/callback?code=xxx
|
|
|
- if (isSSOCallback && !location.pathname.includes('#') && !location.hash.startsWith('#/auth/callback')) {
|
|
|
- const search = location.search;
|
|
|
- history.replace(`/auth/callback#${location.pathname}${search}`);
|
|
|
- }
|
|
|
-
|
|
|
if (![DEFAULT_ENTER_PAGE.login].includes(location.pathname) && !isSSOCallback) {
|
|
|
const userInfo = await fetchUserInfo();
|
|
|
checkDefaultPage(userInfo);
|