Commit 5894921d authored by 崔佳豪's avatar 崔佳豪

fix: 携带密码时直接登录时配置覆盖问题

parent 9b121196
Pipeline #48032 skipped with stages
...@@ -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