This commit is contained in:
bb_pan 2025-09-25 19:19:35 +08:00
parent abceaaf90f
commit d6f7b78587
1 changed files with 11 additions and 1 deletions

View File

@ -51,7 +51,17 @@ export default {
},
async getInfo() {
try {
const res = await getUsageStatisticsApi({ type: this.tabIndex })
let type = 0
if (this.tabIndex == 0) {
type = 0
} else if (this.tabIndex == 1) {
type = 5474
} else if (this.tabIndex == 2) {
type = 5080
} else if (this.tabIndex == 3) {
type = 5010
}
const res = await getUsageStatisticsApi({ type })
if (!res.data) return
if (res.data.length > 5) {
this.tableList = res.data.slice(0, 5)