mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 11:18:54 +08:00
fix: login 插件获取配置问题
This commit is contained in:
parent
d87f0ed5e9
commit
d8ff6aacf3
@ -40,7 +40,7 @@ const defaultExport = {
|
||||
|
||||
if (request.version) {
|
||||
defaultExport.request = (memo) => {
|
||||
const config = getRunTimeConfig();
|
||||
const config = getLoginConfig();
|
||||
if (config.ignore401Redirect) {
|
||||
return memo;
|
||||
}
|
||||
@ -59,6 +59,10 @@ if (request.version) {
|
||||
}
|
||||
else {
|
||||
defaultExport.request = (memo) => {
|
||||
const config = getLoginConfig();
|
||||
if (config.ignore401Redirect) {
|
||||
return memo;
|
||||
}
|
||||
if (!memo.responseInterceptors) {
|
||||
memo.responseInterceptors = [];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user