Merge branch 'master' of http://121.40.234.130:8899/root/yongYuJiaJu
This commit is contained in:
@@ -328,6 +328,16 @@ export default {
|
||||
console.log(res)
|
||||
this.showEmpty = false
|
||||
if (res.data.result.length === 1) {
|
||||
// 如果返回的日志是一样的就不显示
|
||||
if (res.data.result[0].values.length === 1 && ansi_up.ansi_to_html(res.data.result[0].values[0][1]) === this.logs[this.logs.length - 1][1]) {
|
||||
this.$notify({
|
||||
title: '警告',
|
||||
duration: 1000,
|
||||
message: '当前时间段日志已最新!',
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
const log = res.data.result[0].values
|
||||
for (const i in res.data.result[0].values) {
|
||||
log[i][1] = ansi_up.ansi_to_html(res.data.result[0].values[i][1])
|
||||
|
||||
Reference in New Issue
Block a user