[Client] Fix #3655

This commit is contained in:
syuilo 2018-12-19 00:41:53 +09:00
parent 80c74b1fa7
commit 52b59e9d7b
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 3 additions and 2 deletions

View File

@ -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'));