This commit is contained in:
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user