From 14c83b9d4d826818464cf891849b1642672c326b Mon Sep 17 00:00:00 2001 From: Chang Wei Date: Thu, 4 Nov 2021 18:47:06 +0800 Subject: [PATCH] CP-276 fix: fix myCalendar component, fix the error month number (#297) --- src/components/myFullCalendar/MyFullCalendar.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/myFullCalendar/MyFullCalendar.component.js b/src/components/myFullCalendar/MyFullCalendar.component.js index 1963cbe21..a6df8fd24 100644 --- a/src/components/myFullCalendar/MyFullCalendar.component.js +++ b/src/components/myFullCalendar/MyFullCalendar.component.js @@ -47,7 +47,7 @@ const MyFullCalendar = ({ data }) => { center: '', end: 'prev,next', // will normally be on the right. if RTL, will be on the left }} - titleFormat={(date) => `${date.date.year} 年 ${date.date.month} 月`} + titleFormat={(date) => `${date.date.year} 年 ${date.date.month + 1} 月`} contentHeight="auto" eventMouseEnter={eventMouseEnter} eventMouseLeave={eventMouseLeave}