fix:后端返回数据获取1
This commit is contained in:
@@ -220,9 +220,9 @@ export default {
|
||||
luceneOperation.getLogData(this.query).then(res => {
|
||||
this.logs = []
|
||||
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.query.total = res.total || 0
|
||||
this.query.total = res.data.total || 0
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user