fix : 修复 explore 快照 部分图标不显示的问题

This commit is contained in:
zhangyu
2022-09-15 18:26:24 +08:00
parent edf723d784
commit aaaf007385
4 changed files with 28 additions and 20 deletions

View File

@@ -1686,6 +1686,9 @@ export default {
unit: this.chartUnit,
expressions: this.expressions.map(item => encodeURIComponent(item))
}
if (!this.showMetrics) {
params.limit = this.$refs.logDetail ? this.$refs.logDetail.getLimit() : 100
}
this.$get('/visual/explore/snapshot', params, 'blob').then(res => {
const self = this
let fileName = this.showMetrics ? 'Metrics explore' : 'Logs explore'