fix: 修改查询参数 endpoint 改为 endpoint_id

This commit is contained in:
zhangyu
2021-11-25 15:20:00 +08:00
parent 0e35349926
commit 8c45811a78
2 changed files with 2 additions and 2 deletions

View File

@@ -168,7 +168,7 @@ export default {
this.tableData = []
this.tableDataCopy = ''
setTimeout(() => {
this.$get('/prom/api/v1/query?query=' + encodeURIComponent("{endpoint='" + this.currentEndpoint.id + "'}") + '&time=' + this.$stringTimeParseToUnix(new Date(this.formatTime).getTime())).then(response => {
this.$get('/prom/api/v1/query?query=' + encodeURIComponent("{endpoint_id='" + this.currentEndpoint.id + "'}") + '&time=' + this.$stringTimeParseToUnix(new Date(this.formatTime).getTime())).then(response => {
this.loading = false
if (response.status === 'success') {
const results = response.data.result