Commit 50759b3b authored by 李纪文's avatar 李纪文

fix: 广州登录页验证码网关问题

parent 45ee5344
Pipeline #93717 passed with stages
......@@ -11,6 +11,7 @@ const { UserName, Password, Submit } = LoginForm;
const ValidateCode = props => {
const [count, setCount] = useState(0);
const codeUrl = window?.globalConfig?.hasGateWay ? '/PandaCore/Identity/GetVerificationCode' : '/PandaCore/GCK/BussinessAuth/GetVerificationCode';
useEffect(() => {
window.share.event.on('loginError', handError);
......@@ -43,7 +44,7 @@ const ValidateCode = props => {
/>
<div className={styles.validate_img}>
<img
src={`/PandaCore/GCK/BussinessAuth/GetVerificationCode?time=${count}`}
src={`${codeUrl}?time=${count}`}
// key={count}
/>
<div className={styles.validate_refresh} onClick={handeRefresh}>
......
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