Skip to content

Commit

Permalink
fix: 修正錯誤白名單接口
Browse files Browse the repository at this point in the history
  • Loading branch information
JarvisChao committed Oct 21, 2023
1 parent b325442 commit c4c4cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit c4c4cba

Please sign in to comment.