From 6aa6acaafaa5998f3b93e310d81c54d08f367dfa Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Sat, 28 Oct 2023 17:26:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=A2=E7=8A=B6=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E7=82=B9=E4=B8=BA0=E6=97=B6=E6=B8=B2=E6=9F=93=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Editor/Canvas/Operate/ShapeElementOperate.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Editor/Canvas/Operate/ShapeElementOperate.vue b/src/views/Editor/Canvas/Operate/ShapeElementOperate.vue index 6877fdc4..c8b881b3 100644 --- a/src/views/Editor/Canvas/Operate/ShapeElementOperate.vue +++ b/src/views/Editor/Canvas/Operate/ShapeElementOperate.vue @@ -66,7 +66,7 @@ const scaleHeight = computed(() => props.elementInfo.height * canvasScale.value) const { resizeHandlers, borderLines } = useCommonOperate(scaleWidth, scaleHeight) const keypointStyle = computed(() => { - if (!props.elementInfo.pathFormula || !props.elementInfo.keypoint) return {} + if (!props.elementInfo.pathFormula || props.elementInfo.keypoint === undefined) return {} const pathFormula = SHAPE_PATH_FORMULAS[props.elementInfo.pathFormula] if ('editable' in pathFormula) {