Get dashboard in a more working state
This commit is contained in:
parent
e948d81d8a
commit
5bcabbde35
10 changed files with 69 additions and 47 deletions
|
@ -4,11 +4,7 @@ const route = require('./../../../../../vendor/tightenco/ziggy/src/js/route').de
|
|||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
user: () => {
|
||||
const data = JSON.parse(localStorage.getItem('token'));
|
||||
|
||||
return User.fromCookie(data.value, data.name);
|
||||
}
|
||||
user: null,
|
||||
},
|
||||
getters: {
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue