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() {