From 98bd1f422096ef352af50e17d5fdaa681b98d4d8 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 13 二月 2025 14:20:45 +0800
Subject: [PATCH] 站点统计修改
---
/dev/null | 0
src/components/view/b4-site-hours-statistics.vue | 6 +++---
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/node_modules.zip b/node_modules.zip
deleted file mode 100644
index 550a786..0000000
--- a/node_modules.zip
+++ /dev/null
Binary files differ
diff --git a/src/components/view/b4-site-hours-statistics.vue b/src/components/view/b4-site-hours-statistics.vue
index 87f2526..b8f9791 100644
--- a/src/components/view/b4-site-hours-statistics.vue
+++ b/src/components/view/b4-site-hours-statistics.vue
@@ -293,11 +293,11 @@
},
changeTime(){
const year = new Date(this.month).getFullYear();
- const month = new Date(this.month).getMonth();
+ const month = new Date(this.month).getMonth()+1;
const day = new Date(year, month + 1, 0).getDate(); //
// 璁剧疆璧峰鏃ユ湡鍜岀粨鏉熸棩鏈�
- this.startTime = `${year}-${month + 1}-01`
- this.endTime = `${year}-${month + 1}-${day}` // 鏈堟湯
+ this.startTime = `${year}-${month>9?'0'+month:month}-01`
+ this.endTime = `${year}-${month>9?'0'+month:month}-${day}` // 鏈堟湯
this.siteList.forEach(item=>{
item.page.current = 1
})
--
Gitblit v1.9.3