mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
fix: 日历中总是显示时间相差一个月
This commit is contained in:
parent
620465d62a
commit
a4525d4519
@ -293,7 +293,7 @@ export default {
|
||||
|
||||
currentCalendarDate(format) {
|
||||
const cal = this.$refs.cal.getInstance();
|
||||
let currentDate = $A.dayjs([cal.getDate().getFullYear(), cal.getDate().getMonth(), cal.getDate().getDate()]);
|
||||
let currentDate = $A.dayjs([cal.getDate().getFullYear(), cal.getDate().getMonth() + 1, cal.getDate().getDate()]);
|
||||
return currentDate.format(format);
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user