Added reset for store.
This commit is contained in:
parent
2f3f65a3d7
commit
61b4abb688
@ -22,6 +22,14 @@ export default new Vuex.Store({
|
||||
},
|
||||
setType(state, newType) {
|
||||
state.type = newType;
|
||||
},
|
||||
resetStore(state) {
|
||||
state = {
|
||||
site: null,
|
||||
tutors: [],
|
||||
description: null,
|
||||
type: null
|
||||
};
|
||||
}
|
||||
},
|
||||
actions: {}
|
||||
|
Loading…
Reference in New Issue
Block a user