fix: 接口/refreshToken改为/refresh-token (#765)

This commit is contained in:
JarvisChao 2023-10-22 09:00:14 +08:00 committed by GitHub
parent 14624119ed
commit a713d372de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ class PureHttp {
return config;
}
/** 请求白名单放置一些不需要token的接口通过设置请求白名单防止token过期后再请求造成的死循环问题 */
const whiteList = ["/refreshToken", "/login"];
const whiteList = ["/refresh-token", "/login"];
return whiteList.find(url => url === config.url)
? config
: new Promise(resolve => {