fix: panel请求保存的问题

This commit is contained in:
zhangyu
2021-11-25 13:51:06 +08:00
parent 857392eef3
commit 1fb059926a
20 changed files with 44 additions and 44 deletions

View File

@@ -686,7 +686,7 @@ export default {
resolve({ data: '', status: 'no query' })
})
}
query = escape(query)
query = encodeURIComponent(query)
query += '&nullType=' + 'null'
return this.$get('/prom/api/v1/query_range?query=' + query + '&start=' + this.$stringTimeParseToUnix(startTime) + '&end=' + this.$stringTimeParseToUnix(endTime) + '&step=' + step)
})