rui.jiang 2 mesiacov pred
rodič
commit
bf68c0ca24

+ 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}`;
     },