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) {
|
setType(state, newType) {
|
||||||
state.type = newType;
|
state.type = newType;
|
||||||
|
},
|
||||||
|
resetStore(state) {
|
||||||
|
state = {
|
||||||
|
site: null,
|
||||||
|
tutors: [],
|
||||||
|
description: null,
|
||||||
|
type: null
|
||||||
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actions: {}
|
actions: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user