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