Merge pull request 'refactor: login redirect' (#31) from recator/login-redirect into main
Reviewed-on: #31
This commit was merged in pull request #31.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { ref, computed } from 'vue';
|
||||
import { router } from '@KTXC/router';
|
||||
import { authenticationService } from '@KTXC/services/authenticationService';
|
||||
import { userService } from '@KTXC/services/user/userService';
|
||||
import type { AuthenticatedUser } from '@KTXC/types/authenticationTypes';
|
||||
@@ -80,7 +79,7 @@ export const useUserStore = defineStore('userStore', () => {
|
||||
clearAuth();
|
||||
clearProfile();
|
||||
clearSettings();
|
||||
router.push('/login');
|
||||
window.location.href = '/login';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user