Commit 5dde7052 authored by 周宏民's avatar 周宏民

fix: 修改云平台登录页

parent 43b865de
Pipeline #89849 passed with stages
......@@ -23,8 +23,7 @@ const isRQcodeFunc = loginFunc => {
};
const Login = forwardRef((props, _ref) => {
let originType = window.location.origin.replace(/^(http|https):\/\//, '') === 'panda-water.cn';
originType = true;
const originType = window.location.origin.replace(/^(http|https):\/\//, '') === 'panda-water.cn';
const loginRef = useRef();
const timeRef = useRef();
const titleRef = useRef();
......@@ -75,11 +74,19 @@ const Login = forwardRef((props, _ref) => {
action.events.on('loginVisible', status => {
setVisible(status);
});
action.events.on('loginHomePage', () => {
props.history.push(`/homePage`);
});
action.events.on('loginIndustry', () => {
props.history.push(`/industry`);
});
// }
return () => {
action && action.events && action.events.removeAllListeners('loginSuccess');
action && action.events && action.events.removeAllListeners('loginError');
action && action.events && action.events.removeAllListeners('loginVisible');
action && action.events && action.events.removeAllListeners('loginHomePage');
action && action.events && action.events.removeAllListeners('loginIndustry');
};
}, [props.loginMode]);
......
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