From fc99267188dbe95ea340816dbaef5a245285a657 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Thu, 29 Dec 2022 18:18:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20excel=E6=95=B0=E6=8D=AE=E9=9B=86?= =?UTF-8?q?=E6=97=A0=E6=95=B0=E6=8D=AE=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/relationship/consanguinity.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/system/relationship/consanguinity.vue b/frontend/src/views/system/relationship/consanguinity.vue index bbdaa7e480..f12674a135 100644 --- a/frontend/src/views/system/relationship/consanguinity.vue +++ b/frontend/src/views/system/relationship/consanguinity.vue @@ -74,7 +74,9 @@ export default { res.data.name = this.current.label res.data.type = this.current.queryType const arr = res.data ? [res.data] : [] - this.current = { num: id, label: name, queryType: 'datasource' } + if (id) { + this.current = { num: id, label: name, queryType: 'datasource' } + } this.treeData = [] this.dfsTree(arr, id) this.initEchart()