From 9841b7d72c44c2254724bf22e9521605811644b7 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 16 Apr 2024 15:00:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E9=9B=86):=20=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E6=95=B0=E6=8D=AE=E9=9B=86=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/visualized/data/dataset/form/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/visualized/data/dataset/form/index.vue b/core/core-frontend/src/views/visualized/data/dataset/form/index.vue index db3d19719a..632c036771 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/form/index.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/form/index.vue @@ -585,9 +585,11 @@ const getTableName = async (datasourceId, tableName) => { const initEdite = async () => { const { id, datasourceId, tableName } = route.query const { id: copyId } = route.params - const barRes = await barInfoApi(copyId || id) - if (!barRes || !barRes['id']) { - return + if (copyId || id) { + const barRes = await barInfoApi(copyId || id) + if (!barRes || !barRes['id']) { + return + } } if (datasourceId) { dataSource.value = datasourceId as string