diff --git a/src/Services/http.js b/src/Services/http.js index 38de8c9..99c6a38 100644 --- a/src/Services/http.js +++ b/src/Services/http.js @@ -58,9 +58,10 @@ export default () => { switch (errorNo) { case 401: customError = "Session expired" - vm1.$store.dispatch("setToken", null); + vm1.$store.dispatch("RESET_STORE", null); + console.log("store is - ",vm1.$store.state) vm1.$router.push({ name: "Login" }); - vm1.$store.dispatch("Id", null); + // vm1.$store.dispatch("Id", null); break; }