From 4ccf0552d3ceddff1eab9a48d93440febf261f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E5=9B=BD=E9=B9=8F?= Date: Mon, 17 Apr 2023 17:55:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E9=9D=9E=E7=A9=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../huawei/datashow/vue/src/components/uisourcedata/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/huawei/datashow/vue/src/components/uisourcedata/index.vue b/src/main/java/com/huawei/datashow/vue/src/components/uisourcedata/index.vue index 47c0616..6a7ae0c 100644 --- a/src/main/java/com/huawei/datashow/vue/src/components/uisourcedata/index.vue +++ b/src/main/java/com/huawei/datashow/vue/src/components/uisourcedata/index.vue @@ -529,7 +529,9 @@ methods: { }).then( response => { this.sourcedata = response.data - this.tableHeader = Object.keys(response.data[0]) + if(response.data[0]) { + this.tableHeader = Object.keys(response.data[0]) + } }, error => {} ) -- Gitee