This commit is contained in:
2020-05-15 18:01:39 +00:00
parent 15a14601e5
commit 60f2511c5c
3 changed files with 29 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ Vue.use(Vuex);
export default new Vuex.Store({
plugins: [createPersistedState()],
state: {
openObject: {},
lastClientVersion: "",
authenticated: false,
apiUrl: "",
@@ -122,6 +123,11 @@ export default new Vuex.Store({
},
setHomePage(state, data) {
state.homePage = data;
},
setOpenObject(state, data) {
//data should be format for open-object-handler
// { type: [AYATYPE], id: [RECORDID] }
state.openObject = data;
}
},
actions: {}