From 6b3e321846484d82dbb594f1dc3201ec4f120036 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Thu, 17 Apr 2025 17:18:36 +0800
Subject: [PATCH] =?UTF-8?q?feature/2.19.1.2501.01-=E7=A7=BB=E5=8A=A8?=
=?UTF-8?q?=E7=AB=AF=E6=9F=A5=E7=9C=8B=E5=B7=A5=E8=B5=84=E5=8D=95=E5=AF=86?=
=?UTF-8?q?=E7=A0=81=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/mobilePayroll/secondaryVerify.js | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/mobilePayroll/secondaryVerify.js b/pc4mobx/hrmSalary/pages/mobilePayroll/secondaryVerify.js
index a92fd378..a9006367 100644
--- a/pc4mobx/hrmSalary/pages/mobilePayroll/secondaryVerify.js
+++ b/pc4mobx/hrmSalary/pages/mobilePayroll/secondaryVerify.js
@@ -8,7 +8,6 @@
* @description:
*/
import React, { Component } from "react";
-import ReactDom from "react-dom";
import { WeaLocaleProvider } from "ecCom";
import { WeaForm, WeaSwitch } from "comsMobx";
import { message } from "antd";
@@ -24,7 +23,7 @@ const getLabel = WeaLocaleProvider.getLabel;
class SecondaryVerify extends Component {
constructor(props) {
super(props);
- this.state = { notSetting: false };
+ this.state = { notSetting: false, visible: false };
}
componentDidMount() {
@@ -36,7 +35,7 @@ class SecondaryVerify extends Component {
}
componentWillUnmount() {
- form.resetForm();
+ this.setState({ notSetting: false, visible: false }, () => form.resetForm());
}
doSecondAuth = () => {
@@ -57,12 +56,10 @@ class SecondaryVerify extends Component {
}
});
};
- handleSetSecondaryPassword = () => {
- ReactDom.render(, document.getElementById("container"));
- };
+ handleSetSecondaryPassword = () => this.setState({ visible: false });
render() {
- const { notSetting } = this.state;
+ const { notSetting, visible } = this.state;
const itemRender = {
authCode: (field, textAreaProps, form, formParams) => {
return (
@@ -80,6 +77,9 @@ class SecondaryVerify extends Component {
return (
+ {
+ visible &&
+ }
);
}
}