优化代码

This commit is contained in:
wuxw 2024-01-02 20:34:52 +08:00
parent 49dafe6ba8
commit 376270bcc9

View File

@ -121,7 +121,10 @@
},
_formateDate:function(_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('-');
}
}
}