mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-22 14:59:34 +00:00
.
This commit is contained in:
1 parent
ae33df38e4
commit
012a9ec926
5 files changed
+10
-4
No files matched your search
@@ -18,6 +18,8 @@ export default {
|
||||
state.user = data.user
|
||||
localStorage.setItem('wzo_vue_user_user', JSON.stringify(data.user))
|
||||
}
|
||||
|
||||
console.log(state)
|
||||
},
|
||||
auth_error(state: any) {
|
||||
state.token = ''
|
||||
@@ -158,7 +160,7 @@ export default {
|
||||
return state.user
|
||||
},
|
||||
token: (state: any) => {
|
||||
return state.token
|
||||
return (state.token && state.token != undefined) ? state.token : null
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user