From 380f5b2fe353ab47d2645c827ad9969284309590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=B0=91=E5=8D=AB?= Date: Sun, 13 Oct 2024 17:09:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8A=A5=E9=94=99):=20=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E7=A9=BA=E5=80=BC=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/attributeTextFloat.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/attributeTextFloat.vue b/src/components/attributeTextFloat.vue index 4156d39c..72d7c293 100644 --- a/src/components/attributeTextFloat.vue +++ b/src/components/attributeTextFloat.vue @@ -2,7 +2,7 @@ * @Author: 秦少卫 * @Date: 2024-06-10 17:52:40 * @LastEditors: 秦少卫 - * @LastEditTime: 2024-10-07 17:37:53 + * @LastEditTime: 2024-10-13 17:08:59 * @Description: 小数点下标上标 --> @@ -40,7 +40,7 @@ const getObjectAttr = (e) => { const activeObject = canvasEditor.canvas.getActiveObject(); // 不是当前obj,跳过 if (e && e.target && e.target !== activeObject) return; - if (activeObject && isMatchType && activeObject.text.includes('.')) { + if (activeObject && isMatchType && activeObject?.text?.includes('.')) { baseAttr.verticalAlign = activeObject.get('verticalAlign'); } };