mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 18:21:16 +03:30
ss
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import axios from "axios";
|
||||
import toast from "./toast.service";
|
||||
import {TokenService, ApiService} from '@/services';
|
||||
import store from "@/store"
|
||||
import router from '@/router'
|
||||
function errorResponseHandler(error) {
|
||||
|
||||
// check for errorHandle config
|
||||
@@ -26,6 +28,8 @@ function errorResponseHandler(error) {
|
||||
TokenService.removeRefreshToken();
|
||||
TokenService.removeInfo();
|
||||
ApiService.removeAuthHeader();
|
||||
store.commit('auth/logoutSuccess', {}, {root: true})
|
||||
router.push({ name: `Dashboard` });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user