|
|
@@ -23,9 +23,10 @@
|
|
|
const userStore = useUserStore();
|
|
|
const emit = defineEmits(['switchAccount', 'modifyPassword']);
|
|
|
|
|
|
- const handleLogout = () => {
|
|
|
+ const handleLogout = async () => {
|
|
|
userStore.logout();
|
|
|
- router.push({ path: '/home' });
|
|
|
+ await router.push({ path: '/home' });
|
|
|
+ window.location.reload();
|
|
|
};
|
|
|
</script>
|
|
|
|