diff --git a/src/stores/auth.ts b/src/stores/auth.ts index 1c8052d..1386cfb 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -26,7 +26,7 @@ export const useAuthStore = defineStore('auth', () => { writeData('token', 'secret-token') dispatchNotification({ title: 'Berhasil', content: 'Login berhasil, selamat datang kembali!', type: 'success' }) // redirect to home page after login - router.push('/home') + window.location.reload() } else { dispatchNotification({ title: 'Login Gagal', content: 'Username atau password salah', type: 'error' }) }