This commit is contained in:
parent
abceaaf90f
commit
d6f7b78587
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue