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)