|
@@ -21,6 +21,7 @@ export async function getInitialState() { |
|
|
const fetchUserInfo = async () => { |
|
|
const fetchUserInfo = async () => { |
|
|
try { |
|
|
try { |
|
|
const currentUser = await api.queryCurrent(); |
|
|
const currentUser = await api.queryCurrent(); |
|
|
|
|
|
|
|
|
if (currentUser.data == null) { |
|
|
if (currentUser.data == null) { |
|
|
history.push(loginPath); |
|
|
history.push(loginPath); |
|
|
} |
|
|
} |
|
|