From 95b70b20b4711d03f37d6e0d206c8ce5874344f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E5=BC=BA?= <357099073@qq.com> Date: Mon, 14 Jul 2025 14:43:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/index/welcome.php | 6 ++--- app/admin/view/yunzer/menuedit.php | 39 +++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/app/admin/view/index/welcome.php b/app/admin/view/index/welcome.php index 0dab17e..2b107bc 100644 --- a/app/admin/view/index/welcome.php +++ b/app/admin/view/index/welcome.php @@ -317,7 +317,7 @@ function getUserCounts() { fetch('{:url("users/counts")}') .then(response => response.json()) .then(res => { - console.log('用户统计接口返回数据:', res); + // console.log('用户统计接口返回数据:', res); if (res.code === 0 && res.data) { // 更新用户总数 document.querySelector('.stat-card:nth-child(1) .stat-value').textContent = res.data.total.toLocaleString(); @@ -353,7 +353,7 @@ function getArticleCounts() { fetch('{:url("articles/counts")}') .then(response => response.json()) .then(res => { - console.log('文章统计接口返回数据:', res); + // console.log('文章统计接口返回数据:', res); if (res.code === 0 && res.data) { // 更新文章总数 document.querySelector('.stat-card:nth-child(3) .stat-value').textContent = res.data.total.toLocaleString(); @@ -389,7 +389,7 @@ function getResourcesCounts() { fetch('{:url("resources/counts")}') .then(response => response.json()) .then(res => { - console.log('资源统计接口返回数据:', res); + // console.log('资源统计接口返回数据:', res); if (res.code === 0 && res.data) { // 更新资源总数 document.querySelector('.stat-card:nth-child(4) .stat-value').textContent = res.data.total.toLocaleString(); diff --git a/app/admin/view/yunzer/menuedit.php b/app/admin/view/yunzer/menuedit.php index 3c94d40..cd130ac 100644 --- a/app/admin/view/yunzer/menuedit.php +++ b/app/admin/view/yunzer/menuedit.php @@ -50,8 +50,10 @@