update Login
This commit is contained in:
parent
d80e8d2b5a
commit
b80bb344ea
@ -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' })
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user