hotfix/2.14.2.2405.02

工资单查看报错
This commit is contained in:
黎永顺 2024-05-28 11:42:26 +08:00
parent 9577462831
commit bd811da894
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ export default class MobilePayroll extends React.Component {
async componentWillMount() { async componentWillMount() {
const type = getQueryString("type"); const type = getQueryString("type");
this.id = getQueryString("id"); this.id = getQueryString("id");
const { mySalaryStore: { init } } = this.props; const { mySalaryStore: { init, setMySalaryBill } } = this.props;
setMySalaryBill({});
if (type !== "phone") { if (type !== "phone") {
const { data, status } = await payrollCheckType(); const { data, status } = await payrollCheckType();
if (status && data === "PWD") { if (status && data === "PWD") {