Added reset for store.

This commit is contained in:
neviyn 2018-09-20 16:49:47 +01:00
parent 2f3f65a3d7
commit 61b4abb688

View File

@ -22,6 +22,14 @@ export default new Vuex.Store({
}, },
setType(state, newType) { setType(state, newType) {
state.type = newType; state.type = newType;
},
resetStore(state) {
state = {
site: null,
tutors: [],
description: null,
type: null
};
} }
}, },
actions: {} actions: {}