Style(首页):去掉定位授权服务

This commit is contained in:
lifizer
2023-12-25 16:35:55 +08:00
parent f9a364ace1
commit 847a80f251
3 changed files with 1 additions and 79 deletions
-7
View File
@@ -44,13 +44,6 @@ function baseRequest(options) {
Authorization: "Bearer " + token
}
// 如果需要登录才可访问的接口没有拿到 token 视为登录失效
if (options.login === true && !token) {
// 跳转到登录或授权页面
handleLoginFailure();
// 提示错误信息
return Promise.reject({ msg: "未登录", toLogin: true });
}
// 结构请求需要的参数
const { url, params, data, login, ...option } = options