rui.jiang 4 달 전
부모
커밋
bf68c0ca24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/performance/components/chartsCom/Time3DChart.vue

+ 1 - 1
src/views/performance/components/chartsCom/Time3DChart.vue

@@ -158,7 +158,7 @@ export default {
     // 格式化日期为 YY-MM 格式
     formatDate(dateString) {
       const date = new Date(dateString);
-      const year = date.getFullYear().toString().slice(2); // 获取年份后两位
+      const year = date.getFullYear().toString().slice(0); // 获取年份后两位
       const month = ("0" + (date.getMonth() + 1)).slice(-2); // 获取月份并确保两位数
       return `${year}-${month}`;
     },