From 4253ef5c043b17d5c26ac48f872cfcec95f9dd3d Mon Sep 17 00:00:00 2001 From: txb Date: Wed, 11 May 2022 14:15:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E7=AE=80=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9):=20=E7=AE=80=E5=8D=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 简单修改 --- src/app.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.jsx b/src/app.jsx index 4059735..29c208d 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -21,6 +21,7 @@ export async function getInitialState() { const fetchUserInfo = async () => { try { const currentUser = await api.queryCurrent(); + if (currentUser.data == null) { history.push(loginPath); }