fix: ログイン後に再読込する必要があるのを修正

This commit is contained in:
usbharu 2023-08-13 17:23:06 +09:00
parent ed71a86698
commit 6b7016ddf6
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export const LoginPage: Component = () => {
api().loginPost({password: password(), username: username()}).then(value => {
setCookie("token", value.token);
setCookie("refresh-token", value.refreshToken)
navigator("/")
window.location.href = "/"
}).catch(reason => {
console.log(reason);
setPassword("")