Commit a4dbf92c by crushh

Merge branch 'bugfix/火狐时间' into master

parents 54cc66bd f77d8c65
......@@ -234,9 +234,10 @@ export default {
minTimeMonth = maxTimeMonth = null;
} else {
let year = new Date(val[1]).getFullYear();
let month = new Date(val[1]).getMonth() + 2;
let month = new Date(val[1]).getMonth() + 1;
let days = [1, 3, 5, 7, 9].includes(month) ? 31 : 30;
this.form.birthDate2[0] = new Date(val[0]).getMonth() + 1 == new Date().getMonth() + 1 ? this.currentTime : val[0];
this.form.birthDate2[1] = new Date(`${year}/${month}/1`).getTime() - 1;
this.form.birthDate2[1] = new Date(`${year}/${month}/${days} 23:59:59`).getTime();
console.log(this.form.birthDate2);
}
this.form = Object.assign({}, this.form);
......
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