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

fix: modify

parent bf315192
Pipeline #48011 passed with stages
in 2 minutes 19 seconds
......@@ -16,9 +16,9 @@ const LoginTemplate = {
};
/* eslint-disable */
export default (props) => {
React.useEffect(() => {
initGlobalConfig();
}, [props.location]);
// React.useEffect(() => {
// initGlobalConfig();
// }, [props.location]);
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