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