- 优化 undefined 情况
This commit is contained in:
parent
192a1b8850
commit
171cf5b996
@ -108,7 +108,9 @@ export default function request(url, option) {
|
||||
|
||||
// 将登陆的 accessToken 放到 header
|
||||
const loginToken = getLoginToken();
|
||||
if (loginToken && loginToken.accessToken) {
|
||||
newOptions.headers.Authorization = loginToken.accessToken;
|
||||
}
|
||||
|
||||
const expirys = options.expirys && 60;
|
||||
// options.expirys !== false, return the cache,
|
||||
|
Loading…
Reference in New Issue
Block a user