From 22615cd761210abb5f5fd795cee4fb86d79ee586 Mon Sep 17 00:00:00 2001 From: "focp212@naver.com" Date: Mon, 13 Oct 2025 12:52:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=AC=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/sub-layout/index.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/widgets/sub-layout/index.tsx b/src/widgets/sub-layout/index.tsx index 2de960b..891f16a 100644 --- a/src/widgets/sub-layout/index.tsx +++ b/src/widgets/sub-layout/index.tsx @@ -54,13 +54,8 @@ export const SubLayout = () => { const [loginSuccess, setLoginSuccess] = useState(false); const wrapperClassName = 'wrapper'; - const userParmas = { - id: 'nictest00', - password: 'nictest00' - }; + const handleRequestToken = useCallback(async () =>{ - console.log('handleRequestToken'); - alert('handleRequestToken'); requestToken().then((token) => { if(!token) { // 토큰이 null인 경우 로그아웃 처리 @@ -70,7 +65,7 @@ export const SubLayout = () => { logout(); return; } - console.log('token', token); + console.log('token ' + JSON.stringify(token)); setLocalStorage(StorageKeys.Usrid, token.usrid); setLocalStorage(StorageKeys.TokenType, token.tokenType); @@ -83,7 +78,7 @@ export const SubLayout = () => { setLocalStorage(StorageKeys.Requires2FA, token.requires2FA); useStore.getState().UserStore.setUserInfo({ - usrid: userParmas.id, + usrid: token.usrid, tokenType: token.tokenType, accessToken: token.accessToken, refreshToken: token.refreshToken, @@ -128,7 +123,11 @@ export const SubLayout = () => { }; - const handleLogin = useCallback(async () =>{ + const handleLogin = useCallback(async () => { + const userParmas = { + id: 'nictest00', + password: 'nictest00' + }; callLogin(userParmas).then(() => { callHomeGroups(); });