From dcbdc5464855f7cd148b78e7d6a7243d9fb2cefc Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 27 May 2024 11:35:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=96=B0=E5=BB=BA=E4=BB=AA=E8=A1=A8=E6=9D=BF=E6=9C=AA?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=97=B6=E8=BF=99=E4=B8=AA=E5=A4=96=E9=83=A8?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BF=9D=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/components/dashboard/DbToolbar.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/core-frontend/src/components/dashboard/DbToolbar.vue b/core/core-frontend/src/components/dashboard/DbToolbar.vue index bf19c1b2d7..23bb2a947a 100644 --- a/core/core-frontend/src/components/dashboard/DbToolbar.vue +++ b/core/core-frontend/src/components/dashboard/DbToolbar.vue @@ -285,6 +285,14 @@ const batchOptStatusChange = value => { } const openOuterParamsSet = () => { + if (componentData.value.length === 0) { + ElMessage.warning('当前仪表板为空,请先添加组件') + return + } + if (!dvInfo.value.id) { + ElMessage.warning('请先保存当前页面') + return + } outerParamsSetRef.value.optInit() }