From 52b59e9d7be3bdc9159351f918cf81d707a176a0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 19 Dec 2018 00:41:53 +0900 Subject: [PATCH] [Client] Fix #3655 --- src/client/app/common/views/components/signup.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/app/common/views/components/signup.vue b/src/client/app/common/views/components/signup.vue index 7e8d2846a..f7c4f4bf1 100644 --- a/src/client/app/common/views/components/signup.vue +++ b/src/client/app/common/views/components/signup.vue @@ -146,8 +146,9 @@ export default Vue.extend({ this.$root.api('signin', { username: this.username, password: this.password - }, true).then(() => { - location.href = '/'; + }, true).then(res => { + localStorage.setItem('i', res.i); + location.reload(); }); }).catch(() => { alert(this.$t('some-error'));