fix show data error

This commit is contained in:
2025-07-21 23:53:44 +08:00
parent ae47f90af1
commit 622a1c1b00

View File

@@ -378,8 +378,8 @@ const loadAdminInfo = async () => {
const loadStats = async () => { const loadStats = async () => {
try { try {
const response = await adminStore.getStats() const response = await adminStore.getStats()
if (response && response.data.stats) { if (response && response.data) {
stats.value = response.data.stats stats.value = response.data
} }
} catch (error) { } catch (error) {
console.error('加载系统统计失败:', error) console.error('加载系统统计失败:', error)