From eefe590d613ddc98873f872ca1987c5684b656fb Mon Sep 17 00:00:00 2001 From: pa Date: Thu, 1 May 2025 20:27:02 +0900 Subject: [PATCH] fix: next day button jumping to the wrong date --- src/views/Charts/components/InstanceActivity.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/Charts/components/InstanceActivity.vue b/src/views/Charts/components/InstanceActivity.vue index 1dbf60da..cb86c472 100644 --- a/src/views/Charts/components/InstanceActivity.vue +++ b/src/views/Charts/components/InstanceActivity.vue @@ -141,7 +141,7 @@ echartsInstance: null, resizeObserver: null, intersectionObservers: [], - selectedDate: dayjs().add(-1, 'day'), + selectedDate: dayjs(), // data activityData: [], activityDetailData: [], @@ -550,8 +550,8 @@ } } this.selectedDate = isNext - ? this.allDateOfActivityArray[this.allDateOfActivityArray.length - 1] - : this.allDateOfActivityArray[0]; + ? this.allDateOfActivityArray[0] + : this.allDateOfActivityArray[this.allDateOfActivityArray.length - 1]; this.reloadData(); }, getDatePickerDisabledDate(time) {