favicon.ico

This commit is contained in:
saplf
2019-09-07 16:50:19 +08:00
parent 527c0f2904
commit 5611bdb69e
2 changed files with 4 additions and 1 deletions

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -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,