Commit 308828cd authored by 陶晶晶's avatar 陶晶晶
parents 7831ab33 f317b257
Pipeline #96158 waiting for manual action with stages
/*
* @Author: 634665781 634665781@qq.com
* @Date: 2022-07-08 14:28:01
* @LastEditors: Please set LastEditors
* @LastEditTime: 2025-02-13 17:06:31
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2025-03-12 17:39:48
* @FilePath: \CivWeb\src\pages\user\login\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......
......@@ -21,9 +21,6 @@ let titleBg=''
class HuaNongLogin extends Component {
constructor(props) {
super(props);
console.log( props.loginParams,this.props.global.logo,' props.loginParams',window.globalConfig.variableTheme,
'通用登录页。。。。。。。。。。。。。。。。。。。。。。'
);
this.state = {
time: '16:00',
week: '星期一',
......@@ -151,8 +148,6 @@ class HuaNongLogin extends Component {
this.timeTimer && clearInterval(this.timeTimer);
}
componentDidMount() {
console.log(this.props);
console.log(this);
this.onActinoChange(this.state.action);
this.getCurrentTime(this.showTime);
}
......
......@@ -84,10 +84,18 @@ 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]);
......
......@@ -38,7 +38,6 @@ const PopOvercontent = () => {
};
const Login = forwardRef((props, _ref) => {
console.log(props,'propspropsprops');
const sliVerify = useRef();
const loginFormRef = useRef();
const formRef = useRef(null);
......
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