Commit 68bd72f9 authored by 邓晓峰's avatar 邓晓峰
parents 970691d1 5894921d
Pipeline #48033 passed with stages
in 7 minutes 7 seconds
...@@ -20,6 +20,7 @@ const LoginTemplate = { ...@@ -20,6 +20,7 @@ const LoginTemplate = {
export default (props) => { export default (props) => {
const redirect = getParams('redirect'); const redirect = getParams('redirect');
useEffect(() => { useEffect(() => {
if(getParams('loginName') && getParams('password')) return
initGlobalConfig(); initGlobalConfig();
}, [redirect]); }, [redirect]);
const template = window.globalConfig && window.globalConfig.loginTemplate; const template = window.globalConfig && window.globalConfig.loginTemplate;
......
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