From 50adc14ea51aaf0d5f34b087333ff6c00a4ef1f0 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 6 May 2021 15:25:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A4=84=E7=90=86=20endpoint=20Que?= =?UTF-8?q?ry=20=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/table/special/endpointQueryTab.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/table/special/endpointQueryTab.vue b/nezha-fronted/src/components/common/table/special/endpointQueryTab.vue index d80c897e3..7286e9edf 100644 --- a/nezha-fronted/src/components/common/table/special/endpointQueryTab.vue +++ b/nezha-fronted/src/components/common/table/special/endpointQueryTab.vue @@ -141,7 +141,6 @@ export default { setTimeout(() => { this.$get("/prom/api/v1/query?query={endpoint='" + this.currentEndpoint.id + "'}&time=" + new Date(this.formatTime).getTime()).then(response => { this.loading = false - response = JSON.parse(localStorage.getItem('queryData')) if (response.status === 'success') { const results = response.data.result this.queryData = JSON.parse(JSON.stringify(results)) @@ -150,7 +149,7 @@ export default { this.$nextTick(this.$refs.dataTable.doLayout()) if (!this.scrollbarWrap) { this.$nextTick(() => { - this.scrollbarWrap = this.$refs.dataTable.$refs.singleTable.bodyWrapper + // this.scrollbarWrap = this.$refs.dataTable.$refs.singleTable.bodyWrapper // this.toTopBtnHandler(this.scrollbarWrap) }) }