From c7e6d0064dee898f589416a367bb12efeb2b050d Mon Sep 17 00:00:00 2001 From: zfx Date: Thu, 7 Dec 2023 10:46:44 +0800 Subject: [PATCH] fix: location parameter error Signed-off-by: zhangfuxing --- src/core/layouts/Base/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/layouts/Base/index.jsx b/src/core/layouts/Base/index.jsx index 12eee116885..782c3d12f9c 100644 --- a/src/core/layouts/Base/index.jsx +++ b/src/core/layouts/Base/index.jsx @@ -68,7 +68,7 @@ class BaseLayout extends Component { document.addEventListener('click', this.handleClick) } - if (!globals.user && !isAppsPage(this.props.location.path)) { + if (!globals.user && !isAppsPage(this.props.location.pathname)) { location.href = '/login' } }