Force redirect to login page even request failed

This commit is contained in:
Amir
2022-12-26 09:41:27 +08:00
committed by faiqahzaman
parent e6561d9585
commit fb26f8caee
+2
View File
@@ -249,6 +249,8 @@ export default {
.catch((error) => {
console.log(error);
});
localStorage.clear();
this.$router.push({ name: "login" });
},
toHome() {
this.$router.push({ name: "home" });