This commit is contained in:
@@ -9,6 +9,7 @@ export default new Vuex.Store({
|
||||
state: {
|
||||
authenticated: false,
|
||||
apiUrl: "http://localhost:7575/api/v8.0/",
|
||||
apiToken: "NOT-AUTHENTICATED",
|
||||
userId: 0,
|
||||
roles: 0,
|
||||
localeText: {},
|
||||
@@ -20,13 +21,15 @@ export default new Vuex.Store({
|
||||
state.authenticated = data.authenticated;
|
||||
state.userId = data.userId;
|
||||
state.roles = data.roles;
|
||||
state.apiToken = data.apiToken;
|
||||
},
|
||||
logout(state) {
|
||||
state.apiToken = "NOT-AUTHENTICATED";
|
||||
state.authenticated = false;
|
||||
state.userId = 0;
|
||||
state.roles = 0;
|
||||
state.navItems = [];
|
||||
state.localeText = [];
|
||||
state.localeText = {};
|
||||
},
|
||||
addNavItem(state, data) {
|
||||
state.navItems.push(data);
|
||||
|
||||
Reference in New Issue
Block a user