fix:处理 endpoint Query 报错的问题
This commit is contained in:
@@ -141,7 +141,6 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$get("/prom/api/v1/query?query={endpoint='" + this.currentEndpoint.id + "'}&time=" + new Date(this.formatTime).getTime()).then(response => {
|
this.$get("/prom/api/v1/query?query={endpoint='" + this.currentEndpoint.id + "'}&time=" + new Date(this.formatTime).getTime()).then(response => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
response = JSON.parse(localStorage.getItem('queryData'))
|
|
||||||
if (response.status === 'success') {
|
if (response.status === 'success') {
|
||||||
const results = response.data.result
|
const results = response.data.result
|
||||||
this.queryData = JSON.parse(JSON.stringify(results))
|
this.queryData = JSON.parse(JSON.stringify(results))
|
||||||
@@ -150,7 +149,7 @@ export default {
|
|||||||
this.$nextTick(this.$refs.dataTable.doLayout())
|
this.$nextTick(this.$refs.dataTable.doLayout())
|
||||||
if (!this.scrollbarWrap) {
|
if (!this.scrollbarWrap) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.scrollbarWrap = this.$refs.dataTable.$refs.singleTable.bodyWrapper
|
// this.scrollbarWrap = this.$refs.dataTable.$refs.singleTable.bodyWrapper
|
||||||
// this.toTopBtnHandler(this.scrollbarWrap)
|
// this.toTopBtnHandler(this.scrollbarWrap)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user