fix api /me
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
import { store } from "@store/store";
|
||||
import axios from "axios";
|
||||
|
||||
import { getToken, urlHasParams } from "@utils/helper";
|
||||
import { store } from "@store/store";
|
||||
import { setProfileInfo } from "@redux/outstaffingSlice";
|
||||
|
||||
import { getToken, urlHasParams } from "@utils/helper";
|
||||
|
||||
const instance = axios.create({
|
||||
baseURL: process.env.REACT_APP_API_URL,
|
||||
validateStatus(status) {
|
||||
@ -41,7 +42,7 @@ export const apiRequest = (
|
||||
window.location.replace("/auth");
|
||||
localStorage.clear();
|
||||
// dispatch(auth(false));
|
||||
store.dispatch(setProfileInfo({}))
|
||||
store.dispatch(setProfileInfo({}));
|
||||
}
|
||||
return resolve(response);
|
||||
})
|
||||
|
Reference in New Issue
Block a user