From abcb672d7056b22559ce64ac400d7632f52b46b1 Mon Sep 17 00:00:00 2001 From: fofolee Date: Wed, 26 Mar 2025 17:13:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DshowMessageBox=E5=9C=A8?= =?UTF-8?q?=E4=BC=A0=E5=85=A5=E6=95=B0=E5=AD=97=E6=97=B6=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/quickcommandUI/QuickCommand.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/quickcommandUI/QuickCommand.vue b/src/components/quickcommandUI/QuickCommand.vue index 18f5021..8c0a9ff 100644 --- a/src/components/quickcommandUI/QuickCommand.vue +++ b/src/components/quickcommandUI/QuickCommand.vue @@ -141,7 +141,7 @@ export default { * @param position 消息显示位置,默认为"top" */ showMessageBox: (message, icon = "success", time, position = "top") => { - message = window.lodashM.truncate(message, { length: 1200 }); + message = window.lodashM.truncate(message.toString(), { length: 1200 }); if (icon === "success") icon = "positive"; if (icon === "error") icon = "negative"; if (typeof time === "undefined")