Browse Source

🐞 fix(简单修改): 简单修改

简单修改
tags/小炒逻辑变更前
txb 2 years ago
parent
commit
4253ef5c04
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/app.jsx

+ 1
- 0
src/app.jsx View File

@@ -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);
} }


Loading…
Cancel
Save