From b80bb344ea533b58ccc2df9a62791f16c8671e6f Mon Sep 17 00:00:00 2001 From: Dede Fuji Abdul Date: Mon, 16 Oct 2023 15:17:34 +0700 Subject: [PATCH] update Login --- src/stores/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' }) }