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