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

This commit is contained in:
usbharu 2023-08-13 17:23:06 +09:00
parent 714ac201e5
commit 8e7c4956e1
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
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 => { api().loginPost({password: password(), username: username()}).then(value => {
setCookie("token", value.token); setCookie("token", value.token);
setCookie("refresh-token", value.refreshToken) setCookie("refresh-token", value.refreshToken)
navigator("/") window.location.href = "/"
}).catch(reason => { }).catch(reason => {
console.log(reason); console.log(reason);
setPassword("") setPassword("")