diff --git a/src/utils/tools.js b/src/utils/tools.js index 9361f213..3ed9f9ea 100644 --- a/src/utils/tools.js +++ b/src/utils/tools.js @@ -352,11 +352,12 @@ noDataDom.setAttribute('class', 'no-data') noDataDom.innerText = 'No data' export const noData = { updated (el, binding) { + console.info(binding) if (el && binding.oldValue !== binding.value) { if (binding.value) { setTimeout(() => { el.childNodes.forEach(node => { - node.style.display = 'none' + node.style && (node.style.display = 'none') }) el.insertBefore(noDataDom, el.childNodes[0]) }) @@ -370,7 +371,7 @@ export const noData = { } } el.childNodes.forEach(node => { - node.style.display = '' + node.style && (node.style.display = '') }) }) } diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue index 7ed61c03..981877b2 100644 --- a/src/views/charts/Chart.vue +++ b/src/views/charts/Chart.vue @@ -1287,7 +1287,6 @@ export default { const queryParams = { ...this.queryTimeRange, ...this.entity } this.chartOption.series[0].tooltip = { formatter: function (param) { - console.info(param) return `