From ac6f8f44b48f7a932194f8f2bc4ae366753f538e Mon Sep 17 00:00:00 2001 From: amber Date: Wed, 12 Aug 2020 15:57:36 +0530 Subject: [PATCH] reset student form --- src/Services/http.js | 2 ++ src/pages/Students/students.vue | 18 ++++++++++++++---- src/store/store.js | 1 + 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/Services/http.js b/src/Services/http.js index b14f50b..2683a41 100644 --- a/src/Services/http.js +++ b/src/Services/http.js @@ -63,6 +63,7 @@ export default () => { token: null, data: null, isUserLoggedIn: false, + isSchoolLoggedIn: false, id: null, role: null, // schoolId: null, @@ -70,6 +71,7 @@ export default () => { schoolRole: null, studentsData: [], }); + window.getApp.$emit("APP_LOGOUT"); console.log("store is - ",vm1.$store.state) vm1.$router.push({ name: "Login" }); // vm1.$store.dispatch("Id", null); diff --git a/src/pages/Students/students.vue b/src/pages/Students/students.vue index 11806e9..9332507 100644 --- a/src/pages/Students/students.vue +++ b/src/pages/Students/students.vue @@ -880,7 +880,13 @@ - + close @@ -1009,13 +1015,17 @@ icon="warning" >Your search for "{{ search }}" found no results. - + - cancel + cancel @@ -1199,7 +1209,7 @@ - + diff --git a/src/store/store.js b/src/store/store.js index 9961394..4bf3aca 100644 --- a/src/store/store.js +++ b/src/store/store.js @@ -42,6 +42,7 @@ export default new Vuex.Store({ state.isUserLoggedIn = true } else { state.isUserLoggedIn = false + state.isSchoolLoggedIn = false } }, setSchoolToken(state, schoolToken) { -- 2.0.0