修复复制命令时命令名称显示异常的BUG

This commit is contained in:
fofolee 2025-03-15 13:24:41 +08:00
parent bc6141f150
commit dd7fca3b62

View File

@ -191,10 +191,12 @@ export default {
},
//
exportCommandRaw() {
utools.copyText(JSON.stringify(this.getRawCommand(), null, 4)) &&
utools.showNotification(
`${this.commandInfo.features.explain}」已复制到剪贴板`
const commandName = this.commandInfo.features.explain.replace(
/<strong style=".*?">|<\/strong>/g,
""
);
utools.copyText(JSON.stringify(this.getRawCommand(), null, 4)) &&
utools.showNotification(`${commandName}」已复制到剪贴板`);
},
//
createCommandCopy() {