优化细节

This commit is contained in:
gaoxs
2020-04-13 16:24:40 +08:00
parent d8f92720d2
commit b4c76df22a
14 changed files with 689 additions and 658 deletions

View File

@ -37,7 +37,7 @@ function baseRequest(options) {
// 如果接口需要登录,携带 token 去请求
options.headers = {
...options.headers,
Authorization: options.login ? "Bearer " + token : null
Authorization: "Bearer " + token
}
// 如果需要登录才可访问的接口没有拿到 token 视为登录失效