diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue index e392ea405..62a236086 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -494,6 +494,9 @@ export default { if (!obj.param.max) { obj.param.max = 100 } + if (!obj.param.text && obj.param.display) { + obj.param.text = obj.param.display + } if (!obj.param.link) { this.$set(obj.param, 'link', '') } @@ -516,6 +519,12 @@ export default { if (!item.show) { item.show = false } + if (item.text && !item.display) { + item.display = item.text + } + if (item.columns && !item.column) { + item.column = item.columns + } }) } }