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 = { ...@@ -16,9 +16,9 @@ const LoginTemplate = {
}; };
/* eslint-disable */ /* eslint-disable */
export default (props) => { export default (props) => {
React.useEffect(() => { // React.useEffect(() => {
initGlobalConfig(); // initGlobalConfig();
}, [props.location]); // }, [props.location]);
const template = window.globalConfig && window.globalConfig.loginTemplate; const template = window.globalConfig && window.globalConfig.loginTemplate;
const RenderComponent = LoginTemplate[template] ? LoginTemplate[template]: LoginTemplate['default']; const RenderComponent = LoginTemplate[template] ? LoginTemplate[template]: LoginTemplate['default'];
return <RenderComponent {...props}/> 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