fix(editor): Hard load after logout to reset stores (no-changelog) (#9500)

This commit is contained in:
Csaba Tuncsik
2024-05-23 17:07:40 +02:00
committed by GitHub
parent f8683c31e0
commit 93679076b4
4 changed files with 35 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ export default defineComponent({
async logout() {
try {
await this.usersStore.logout();
void this.$router.replace({ name: VIEWS.SIGNIN });
window.location.href = this.$router.resolve({ name: VIEWS.SIGNIN }).href;
} catch (e) {
this.showError(e, this.$locale.baseText('auth.signout.error'));
}