This commit is contained in:
2018-11-26 18:16:34 +00:00
parent b41a71e862
commit dc4a04472b
3 changed files with 18 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ export default new Vuex.Store({
state: {
authenticated: false,
apiUrl: "",
helpUrl: "",
apiToken: "-",
userId: 0,
roles: 0,
@@ -45,6 +46,9 @@ export default new Vuex.Store({
setAPIURL(state, data) {
state.apiUrl = data;
},
setHelpURL(state, data) {
state.helpUrl = data;
},
logItem(state, msg) {
msg = Date.now() + "|" + msg;
state.logArray.push(msg);