fix api /me
This commit is contained in:
1 parent
5e7c9dec79
commit
80ebf85347
3 files changed
+29
-27
No files matched your search
@@ -1,6 +1,8 @@
|
||||
import axios from "axios";
|
||||
|
||||
import { getToken, urlHasParams } from "@utils/helper";
|
||||
import { store } from "@store/store";
|
||||
import { setProfileInfo } from "@redux/outstaffingSlice";
|
||||
|
||||
const instance = axios.create({
|
||||
baseURL: process.env.REACT_APP_API_URL,
|
||||
@@ -39,6 +41,7 @@ export const apiRequest = (
|
||||
window.location.replace("/auth");
|
||||
localStorage.clear();
|
||||
// dispatch(auth(false));
|
||||
store.dispatch(setProfileInfo({}))
|
||||
}
|
||||
return resolve(response);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user