Skip to content

Commit

Permalink
fix: login 插件获取配置问题
Browse files Browse the repository at this point in the history
  • Loading branch information
letgo committed May 8, 2024
1 parent d87f0ed commit d8ff6aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/fes-plugin-login/src/runtime/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const defaultExport = {

if (request.version) {
defaultExport.request = (memo) => {
const config = getRunTimeConfig();
const config = getLoginConfig();
if (config.ignore401Redirect) {
return memo;
}
Expand All @@ -59,6 +59,10 @@ if (request.version) {
}
else {
defaultExport.request = (memo) => {
const config = getLoginConfig();
if (config.ignore401Redirect) {
return memo;
}
if (!memo.responseInterceptors) {
memo.responseInterceptors = [];
}
Expand Down

0 comments on commit d8ff6aa

Please sign in to comment.