This commit is contained in:
2018-11-14 23:13:22 +00:00
parent 105c8c9a78
commit 84e776f66e
6 changed files with 34 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ export default new Vuex.Store({
plugins: [createPersistedState()],
state: {
authenticated: false,
apiUrl: "http://localhost:7575/api/v8.0/",
apiUrl: "", //http://localhost:7575/api/v8.0/
apiToken: "-",
userId: 0,
roles: 0,
@@ -30,12 +30,16 @@ export default new Vuex.Store({
state.roles = 0;
state.navItems = [];
state.localeText = {};
state.apiUrl = "";
},
addNavItem(state, data) {
state.navItems.push(data);
},
addLocaleText(state, data) {
state.localeText[data.key] = data.value;
},
setAPIURL(state, data) {
state.apiUrl = data;
}
},
actions: {}