Подключаем api

This commit is contained in:
Book Pauk
2019-01-01 22:55:32 +07:00
parent 64d16677d3
commit 1ffc15a6ed
6 changed files with 107 additions and 16 deletions

25
client/store/root.js Normal file
View File

@@ -0,0 +1,25 @@
// initial state
const state = {
apiError: null,
};
// getters
const getters = {};
// actions
const actions = {};
// mutations
const mutations = {
setApiError(state, value) {
state.apiError = value;
},
};
export default {
namespaced: true,
state,
getters,
actions,
mutations
};