fix:删除 console 解决 sanKey 不显示的问题

This commit is contained in:
zhangyu
2022-01-26 10:15:08 +08:00
parent da17dc8ad2
commit 9fc8a3b018
2 changed files with 1 additions and 2 deletions

View File

@@ -185,7 +185,6 @@ export default {
if (this.isSingleValue) { if (this.isSingleValue) {
if (chartParams && chartParams.dataKey) { if (chartParams && chartParams.dataKey) {
get(replaceUrlPlaceholder(chartParams.url), this.queryParams).then(response =>{ get(replaceUrlPlaceholder(chartParams.url), this.queryParams).then(response =>{
console.log(response)
if (response.code === 200) { if (response.code === 200) {
if (response.data.result && (response.data.result[chartParams.dataKey] || response.data.result[chartParams.dataKey] === 0)) { if (response.data.result && (response.data.result[chartParams.dataKey] || response.data.result[chartParams.dataKey] === 0)) {
this.chartData = response.data.result[chartParams.dataKey] this.chartData = response.data.result[chartParams.dataKey]

View File

@@ -28,7 +28,7 @@ export default {
init (id) { init (id) {
const vm = this const vm = this
const chartParams = this.chartInfo.params 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) const dom = document.getElementById(id)
!this.myChart && (this.myChart = echarts.init(dom)) !this.myChart && (this.myChart = echarts.init(dom))
this.chartOption = this.$_.cloneDeep(sankey) this.chartOption = this.$_.cloneDeep(sankey)