【桂冠捐赠证书】new Date('2022-08'),当前时间改为8月

This commit is contained in:
li.yuetong
2022-06-16 16:43:22 +08:00
parent 03d102bcbb
commit f284e6a8c9

View File

@@ -79,7 +79,7 @@ export default {
* @Date:2021-08-25
*/
getCurrentDateFunc() {
let date = new Date()
let date = new Date('2022-08')
let year = date.getFullYear()
let month = (date.getMonth() + 1) <= 9 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
return year + '-' + month