From 58e26b150dfccc5742163bc768aa495a4d2d3141 Mon Sep 17 00:00:00 2001 From: amber Date: Tue, 11 Aug 2020 15:13:34 +0530 Subject: [PATCH] added change --- src/Services/http.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.0.0