From fc62a351409317a2e6378589fa3d13ae4abc4896 Mon Sep 17 00:00:00 2001 From: dragon1211 Date: Thu, 30 Dec 2021 18:19:58 -0800 Subject: [PATCH] fixed loginAccountCheck --- backend/public/js/app.js | 4 ++-- backend/resources/js/component/page_change_handler.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/public/js/app.js b/backend/public/js/app.js index 6569e404..0053235c 100644 --- a/backend/public/js/app.js +++ b/backend/public/js/app.js @@ -44714,10 +44714,10 @@ function PageChangeHandler() { pathname = _useLocation.pathname; (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { - loginCheck(); + loginAccountCheck(); }, [pathname]); - var loginCheck = function loginCheck() { + var loginAccountCheck = function loginAccountCheck() { var acc = pathname.split('/')[1]; if (localStorage.getItem('kiki_acc_type') && acc != localStorage.getItem('kiki_acc_type')) { diff --git a/backend/resources/js/component/page_change_handler.jsx b/backend/resources/js/component/page_change_handler.jsx index fdb8c5a7..cf04f03b 100644 --- a/backend/resources/js/component/page_change_handler.jsx +++ b/backend/resources/js/component/page_change_handler.jsx @@ -5,10 +5,10 @@ export default function PageChangeHandler() { const { pathname } = useLocation(); useEffect(() => { - loginCheck(); + loginAccountCheck(); }, [pathname]); - const loginCheck = () => { + const loginAccountCheck = () => { let acc = pathname.split('/')[1]; if(localStorage.getItem('kiki_acc_type') && (acc != localStorage.getItem('kiki_acc_type'))) { location.reload();