Commit d3abaa37 authored by 崔佳豪's avatar 崔佳豪

fix: 退出登录不重新获取配置

parent c29de16e
Pipeline #48596 passed with stages
in 2 minutes 19 seconds
......@@ -21,11 +21,11 @@ const LoginTemplate = {
};
/* eslint-disable */
export default (props) => {
const redirect = getParams('redirect');
useEffect(() => {
if(getParams('loginName') && getParams('password')) return
initGlobalConfig();
}, [redirect]);
// const redirect = getParams('redirect');
// useEffect(() => {
// if(getParams('loginName') && getParams('password')) return
// initGlobalConfig();
// }, [redirect]);
const template = window.globalConfig && window.globalConfig.loginTemplate;
const RenderComponent = LoginTemplate[template] ? LoginTemplate[template]: LoginTemplate['default'];
return <RenderComponent {...props}/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment