mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
Auth認証画面から正常にログインできるよう修正 (#6154)
* Fix #6095 Auth認証画面から正常にログインできるよう修正 * Fix #6095
This commit is contained in:
parent
ed818fc8e3
commit
c89a10b40e
2 changed files with 4 additions and 1 deletions
0
src/client/components/signin.vue
Normal file → Executable file
0
src/client/components/signin.vue
Normal file → Executable file
5
src/client/pages/auth.vue
Normal file → Executable file
5
src/client/pages/auth.vue
Normal file → Executable file
|
@ -26,7 +26,7 @@
|
|||
</div>
|
||||
<div class="signin" v-else>
|
||||
<h1>{{ $t('sign-in') }}</h1>
|
||||
<mk-signin/>
|
||||
<mk-signin @login="onLogin"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -85,6 +85,9 @@ export default Vue.extend({
|
|||
if (this.session.app.callbackUrl) {
|
||||
location.href = `${this.session.app.callbackUrl}?token=${this.session.token}`;
|
||||
}
|
||||
}, onLogin(res) {
|
||||
localStorage.setItem('i', res.i);
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue