favicon.ico
This commit is contained in:
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -57,9 +57,12 @@ async function filter<T>(
|
||||
} else {
|
||||
instance.defaults.headers = _.omit(instance.defaults.headers, 'token');
|
||||
}
|
||||
const { status, data } =
|
||||
const { status, data, headers } =
|
||||
await (instance[method] as (...args: any[]) => Promise<AxiosResponse<AppResp>>)(...args);
|
||||
replaceId(data);
|
||||
if (headers && headers.token) {
|
||||
dispatch({ type: 'user/updateToken', payload: headers.token });
|
||||
}
|
||||
ret = {
|
||||
ok: status >= 200 && status < 300 && data && data.code === 0,
|
||||
code: data && data.code,
|
||||
|
||||
Reference in New Issue
Block a user