未验证 提交 07aa8044 编写于 作者: 陈小聪 提交者: GitHub

Repeated addition search (#3828)

Close: #3791 
Close: #3835
上级 22303139
......@@ -53,14 +53,17 @@ export default {
},
});
reloadAuthorized();
yield put(
routerRedux.replace({
pathname: '/user/login',
search: stringify({
redirect: window.location.href,
}),
})
);
// redirect
if (window.location.pathname !== '/user/login') {
yield put(
routerRedux.replace({
pathname: '/user/login',
search: stringify({
redirect: window.location.href,
}),
})
);
}
},
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册