Browse Source

Merge branch 'master' of http://192.168.50.233:3000/rui.jiang/performance-test

liujiejie 4 months ago
parent
commit
ac6d259de9
1 changed files with 1 additions and 1 deletions
  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}`;
     },