From 6e2f9f4abbcf6d3a641985392ce4f80440db3496 Mon Sep 17 00:00:00 2001 From: lizhuoyuan <2820814112@qq.com> Date: Fri, 7 Feb 2025 10:41:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D\\i=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/ui.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/ui.js b/libs/ui.js index e099e4a9..ce644261 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -1369,10 +1369,9 @@ ui.prototype._drawTextContent_drawIcon = function (tempCtx, content, config) { // 绘制一个 \i 效果 var index = config.index, index2; if (content.charAt(config.index + 1) == '[' && ((index2 = content.indexOf(']', index + 1)) >= 0)) { - console.log(1); var str = core.replaceText(content.substring(index + 2, index2)); // --- 获得图标 - var cls = core.getClsFromId(str); + var cls = core.getClsFromId(str) || ''; var iconInfo = core.ui._getDrawableIconInfo(str), image = iconInfo[0], icon = iconInfo[1]; if (image == null) return this._drawTextContent_next(tempCtx, content, config); // 检查自动换行