|
@@ -14,7 +14,7 @@ export type Hook = {
|
|
|
export const axiosFactory = () => {
|
|
|
const axiosRaw = Axios.create()
|
|
|
const axiosConfig = {
|
|
|
- token: localStorage.getItem('fuseToken'),
|
|
|
+ token: localStorage.getItem('fuseCodeToken'),
|
|
|
unTokenSet: [] as string[],
|
|
|
unReqErrorSet: [] as string[],
|
|
|
unResErrorSet: [] as string[],
|
|
@@ -65,11 +65,11 @@ export const axiosFactory = () => {
|
|
|
|
|
|
const getToken = () => axiosConfig.token
|
|
|
const setToken = (token: string) => {
|
|
|
- localStorage.setItem('fuseToken', token)
|
|
|
+ localStorage.setItem('fuseCodeToken', token)
|
|
|
axiosConfig.token = token
|
|
|
}
|
|
|
const delToken = () => {
|
|
|
- localStorage.removeItem('fuseToken')
|
|
|
+ localStorage.removeItem('fuseCodeToken')
|
|
|
axiosConfig.token = null
|
|
|
}
|
|
|
|