mirror of https://github.com/usbharu/Hideout.git
fix: ログイン後に再読込する必要があるのを修正
This commit is contained in:
parent
ed71a86698
commit
6b7016ddf6
|
@ -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("")
|
||||||
|
|
Loading…
Reference in New Issue