From 48c61436100db7d1a50201dc606758ca80d7b727 Mon Sep 17 00:00:00 2001 From: Quy_FE Date: Fri, 18 Apr 2025 16:18:39 +0700 Subject: [PATCH] =?UTF-8?q?fix=20:=20s=E1=BB=ADa=20l=E1=BB=97i=20login?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/_screens/login/index.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/_screens/login/index.js b/src/_screens/login/index.js index ddb214a..6b01fcc 100644 --- a/src/_screens/login/index.js +++ b/src/_screens/login/index.js @@ -79,16 +79,21 @@ export default function Login() { dispatch({ type: TYPE_DISPATCH.RESET_AUTHENTICATION, }); - persistor.purge(); - window.location.href = PATH.login; - return false + dispatch( + alertActions.error({ + message: 'Bạn không có quyền truy cập', + }), + ); + return false + // persistor.purge(); + // window.location.href = PATH.login; } handleLoginSuccess(res); } } catch (err) { dispatch( alertActions.error({ - message: 'Bạn không có quyền truy cập', + message: err.toString() }), ); }