From dd7fca3b6286994d1ca3286836aae7ead3909a2d Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 15 Mar 2025 13:24:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=8D=E5=88=B6=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E6=97=B6=E5=91=BD=E4=BB=A4=E5=90=8D=E7=A7=B0=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=BC=82=E5=B8=B8=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/card/ControlButtons.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/card/ControlButtons.vue b/src/components/card/ControlButtons.vue index 4e952e5..8376f8a 100644 --- a/src/components/card/ControlButtons.vue +++ b/src/components/card/ControlButtons.vue @@ -191,10 +191,12 @@ export default { }, // 导出到剪贴板 exportCommandRaw() { + const commandName = this.commandInfo.features.explain.replace( + /|<\/strong>/g, + "" + ); utools.copyText(JSON.stringify(this.getRawCommand(), null, 4)) && - utools.showNotification( - `「${this.commandInfo.features.explain}」已复制到剪贴板` - ); + utools.showNotification(`「${commandName}」已复制到剪贴板`); }, // 创建命令副本 createCommandCopy() {