From 5cdc744b657693c67e66455ae6a26ee979520c47 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Sat, 2 Apr 2022 17:41:24 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A4=84=E7=90=86=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=B8=8D=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/rightBox/chart/chartRightBox.vue | 9 +++++++++ 1 file changed, 9 insertions(+) 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 + } }) } }