kalykun
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/app.tsx
|
|
@ -35,7 +35,7 @@ export async function getInitialState(): Promise<{ |
|
|
} |
|
|
} |
|
|
return undefined; |
|
|
return undefined; |
|
|
}; |
|
|
}; |
|
|
// 如果是登录页面,不执行
|
|
|
// 如果不是登录页面,执行
|
|
|
if (history.location.pathname !== loginPath) { |
|
|
if (history.location.pathname !== loginPath) { |
|
|
const currentUser = await fetchUserInfo(); |
|
|
const currentUser = await fetchUserInfo(); |
|
|
return { |
|
|
return { |
|
|
|