diff --git a/src/event.js b/src/event.js index 353b5ae..d1aac0d 100644 --- a/src/event.js +++ b/src/event.js @@ -17,6 +17,8 @@ export default [{ this.$store.dispatch('setToken', null) this.$store.dispatch('Id', null) this.$store.dispatch('Role', null) + this.$store.dispatch('setSchoolToken', null) + this.$store.dispatch('setSchoolRole', null) this.$router.replace({ path: '/' }); } else if (this.$store.state.schoolRole === "SUPERADMIN") { this.$store.dispatch('setSchoolToken', null) @@ -26,6 +28,8 @@ export default [{ this.$store.dispatch('setToken', null) this.$store.dispatch('Id', null) this.$store.dispatch('Role', null) + this.$store.dispatch('setSchoolToken', null) + this.$store.dispatch('setSchoolRole', null) this.$router.replace({ path: '/' }); } }