From 9fc8a3b01829f4f8a90750b1ee8b015ba250efcf Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 26 Jan 2022 10:15:08 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=88=A0=E9=99=A4=20console=20?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=20sanKey=20=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=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/views/charts/PanelChart.vue | 1 - src/views/charts/charts/ChartSanKey.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/charts/PanelChart.vue b/src/views/charts/PanelChart.vue index 4d4ab5cf..e2a6cf85 100644 --- a/src/views/charts/PanelChart.vue +++ b/src/views/charts/PanelChart.vue @@ -185,7 +185,6 @@ export default { if (this.isSingleValue) { if (chartParams && chartParams.dataKey) { get(replaceUrlPlaceholder(chartParams.url), this.queryParams).then(response =>{ - console.log(response) if (response.code === 200) { if (response.data.result && (response.data.result[chartParams.dataKey] || response.data.result[chartParams.dataKey] === 0)) { this.chartData = response.data.result[chartParams.dataKey] diff --git a/src/views/charts/charts/ChartSanKey.vue b/src/views/charts/charts/ChartSanKey.vue index 97d3950a..fae11940 100644 --- a/src/views/charts/charts/ChartSanKey.vue +++ b/src/views/charts/charts/ChartSanKey.vue @@ -28,7 +28,7 @@ export default { init (id) { const vm = this const chartParams = this.chartInfo.params - const entityName = this.entity.ip || this.entity.domain || this.entity.app + const entityName = this.entity.ip || this.entity.domain || this.entity.app || this.entity.appName const dom = document.getElementById(id) !this.myChart && (this.myChart = echarts.init(dom)) this.chartOption = this.$_.cloneDeep(sankey)