From e4e9083fe9e645f7c688733b81477025521fb81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Wed, 17 Jan 2024 11:11:41 +0800 Subject: [PATCH] 1release/2.9.10.2312.02 --- pc4mobx/hrmSalary/pages/mySalaryMobile/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pc4mobx/hrmSalary/pages/mySalaryMobile/index.js b/pc4mobx/hrmSalary/pages/mySalaryMobile/index.js index 88fd95b1..0ce6b908 100644 --- a/pc4mobx/hrmSalary/pages/mySalaryMobile/index.js +++ b/pc4mobx/hrmSalary/pages/mySalaryMobile/index.js @@ -19,7 +19,9 @@ class Index extends Component { super(props); this.state = { dataSource: [], loading: false, pageInfo: { current: 1, pageSize: 10, total: 0 }, - salaryYearMonth: [moment().startOf("year").format("YYYY-MM"), moment().startOf("month").format("YYYY-MM")], + salaryYearMonth: [ + moment(new Date()).subtract(1, 'year').startOf("year").format("YYYY-MM"), + moment().endOf("year").format("YYYY-MM")], isMore: true //是否还有更多数据 }; }