From 6d2c1e98744c075c617d93dde141fa3e69c1a5d5 Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 5 Aug 2024 15:26:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=95=B0=E6=8D=AE=E6=BA=90):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=92=E4=BB=B6=E5=8A=A0=E8=BD=BD=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/visualized/data/datasource/form/DsTypeList.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/DsTypeList.vue b/core/core-frontend/src/views/visualized/data/datasource/form/DsTypeList.vue index 034d6c5fbd..3aa4dc8232 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/DsTypeList.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/DsTypeList.vue @@ -96,7 +96,9 @@ const loadDsPlugin = data => { } const index = typeList.findIndex(ele => ele === node.catalog) if (index !== -1) { - databaseList.value[index].push(node) + let copiedArr = JSON.parse(JSON.stringify(databaseList.value)) + copiedArr[index].push(node) + databaseList.value = copiedArr } }) }