fix: auth
This commit is contained in:
parent
714ae40d2c
commit
e3e1993635
@ -51,7 +51,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
if (response.status) {
|
||||
const data = response.user
|
||||
|
||||
// writeData('token', 'secret-token')
|
||||
writeData('token', 'secret-token')
|
||||
writeData('user_name', data.username)
|
||||
writeData('user_access', 'Petugas')
|
||||
writeData('user_uid', data.namaUid)
|
||||
@ -65,8 +65,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
})
|
||||
|
||||
console.log(filterPresets.value)
|
||||
console.log(data)
|
||||
// window.location.reload()
|
||||
window.location.reload()
|
||||
} else {
|
||||
dispatchNotification({
|
||||
title: 'Login Gagal',
|
||||
|
Loading…
x
Reference in New Issue
Block a user