From 9cc1275cd758b44fa440f4b460b8dec923999bc8 Mon Sep 17 00:00:00 2001 From: Linzm <1015157648@qq.com> Date: Tue, 10 Feb 2026 10:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E7=9B=B8=E6=A1=86?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=98=BE=E7=A4=BA18=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cartoon/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/cartoon/index.vue b/src/views/cartoon/index.vue index 4cd6b10..1a01b04 100644 --- a/src/views/cartoon/index.vue +++ b/src/views/cartoon/index.vue @@ -348,12 +348,12 @@ const getCharUnits = (str: string) => { // 限制最多 12 个字符单位:中文占2个,英文/数字/空格/符号占1个 const scenePropInputText = (val: string) => { - if (getCharUnits(val) > 12) { + if (getCharUnits(val) > 18) { let units = 0 let i = 0 for (; i < val.length; i++) { const add = /[\u4e00-\u9fff\u3400-\u4dbf]/.test(val[i]) ? 2 : 1 - if (units + add > 12) break + if (units + add > 18) break units += add } val = val.slice(0, i)