From 30ff4a1f237c27b0c6c3a015769fd0b250bd3bac Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Thu, 15 Aug 2024 14:40:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 4223ad6..24530cc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -154,7 +154,7 @@ const App: React.FC = () => { storage.setItem('stateInfo', JSON.stringify(state)) }, [state]) useEffect(() => { - if (location.href.indexOf('/login') === 1) { + if (location.href.indexOf('/login') !== -1) { onStop() } }, [navigate])