mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-06-11 06:07:28 +08:00
优化代码
This commit is contained in:
parent
49dafe6ba8
commit
376270bcc9
@ -121,7 +121,10 @@
|
|||||||
},
|
},
|
||||||
_formateDate:function(_time){
|
_formateDate:function(_time){
|
||||||
let _date = getDate(_time);
|
let _date = getDate(_time);
|
||||||
return formatDate(_date);
|
const year = date.getFullYear();
|
||||||
|
const month = date.getMonth();
|
||||||
|
const day = date.getDate();
|
||||||
|
return [year, month, day].map(formatNumber).join('-');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user