Commit ab3acb36 by crushh

update: 时间

parent 366ad51f
......@@ -236,7 +236,7 @@ export default {
let year = new Date(val[1]).getFullYear();
let month = new Date(val[1]).getMonth() + 2;
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).getTime() - 1;
this.form.birthDate2[1] = new Date(`${year}/${month}/1`).getTime() - 1;
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