From 1850a5f4e94448f5de19bb3b5fd6c027d1135d71 Mon Sep 17 00:00:00 2001 From: pllx Date: Tue, 28 Apr 2026 23:12:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=89=E6=8B=A9=E6=96=9C=E6=9D=A0?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=90=8E=E8=87=AA=E5=8A=A8=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E4=B8=AD=E7=9A=84=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 统一在 selectCommand 公共入口清理输入 - 新增 /签到 命令,自动完成今日签到 --- resources/js/chat-room/slash-commands.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/js/chat-room/slash-commands.js b/resources/js/chat-room/slash-commands.js index 28485d1..8f66f8e 100644 --- a/resources/js/chat-room/slash-commands.js +++ b/resources/js/chat-room/slash-commands.js @@ -163,6 +163,10 @@ function selectCommand(index) { window.persistChatDraft?.(cmd.name); } + // 统一清除输入框中的 / + input.value = ""; + window.persistChatDraft?.(""); + hideMenu(); input.focus(); }