fix:后端返回数据获取1

This commit is contained in:
zhangzq
2026-07-08 18:53:00 +08:00
parent e923a90fbd
commit 8fa31ae2e6

View File

@@ -220,9 +220,9 @@ export default {
luceneOperation.getLogData(this.query).then(res => { luceneOperation.getLogData(this.query).then(res => {
this.logs = [] this.logs = []
var ansi_up = new AnsiUp() var ansi_up = new AnsiUp()
const page = Array.isArray(res.page) ? res.page : [] const page = Array.isArray(res.data.page) ? res.data.page : []
this.logs = page.map(item => this.formatLogMessage(item, ansi_up)) this.logs = page.map(item => this.formatLogMessage(item, ansi_up))
this.query.total = res.total || 0 this.query.total = res.data.total || 0
}) })
} }
} }