修复菜单编辑

This commit is contained in:
2025-07-14 14:43:14 +08:00
parent 7cd7149091
commit 95b70b20b4
2 changed files with 41 additions and 4 deletions
+3 -3
View File
@@ -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();