fix: login 插件获取配置问题

This commit is contained in:
letgo 2024-05-08 15:14:46 +08:00
parent c0723990c7
commit f337e69f3e

View File

@ -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 = [];
}