rui.jiang 2 月之前
父節點
當前提交
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}`;
     },