调整日期

This commit is contained in:
唐明明
2021-10-09 17:29:14 +08:00
parent 38c4be92f6
commit 91a1ad3748
13 changed files with 13466 additions and 11291 deletions

View File

@@ -10,7 +10,7 @@ export default getDate = (type) =>{
return new Promise((resolve, reject) => {
const date = new Date()
const year = date.getFullYear()
const month = (date.getMonth() + 1) <= 9 ? '0' + (date.getMonth() + 1) : date.getMonth()
const month = (date.getMonth() + 1) <= 9 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
const day = date.getDate()
switch(type){