From 5f68f73df5da4786d6a58276f8e6fe674050bc59 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 3 Dec 2024 14:14:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E4=BA=8B=E4=BB=B6=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-visualization/canvas/ComponentWrapper.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue index a0e6039e22..a370d94ec7 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue @@ -11,6 +11,8 @@ import { useCache } from '@/hooks/web/useCache' import Board from '@/components/de-board/Board.vue' import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' import { activeWatermarkCheckUser, removeActiveWatermark } from '@/components/watermark/watermark' +import { isMobile } from '@/utils/utils' +import { isDashboard } from '@/utils/canvasUtils' const componentWrapperInnerRef = ref(null) const componentEditBarRef = ref(null) @@ -312,7 +314,8 @@ const eventEnable = computed( ) || ['indicator', 'rich-text'].includes(config.value.innerType)) && config.value.events && - config.value.events.checked + config.value.events.checked && + (isDashboard() || (!isDashboard() && !isMobile())) ) const onWrapperClick = e => {