修复复制命令时命令名称显示异常的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() { exportCommandRaw() {
utools.copyText(JSON.stringify(this.getRawCommand(), null, 4)) && const commandName = this.commandInfo.features.explain.replace(
utools.showNotification( /<strong style=".*?">|<\/strong>/g,
`${this.commandInfo.features.explain}」已复制到剪贴板` ""
); );
utools.copyText(JSON.stringify(this.getRawCommand(), null, 4)) &&
utools.showNotification(`${commandName}」已复制到剪贴板`);
}, },
// //
createCommandCopy() { createCommandCopy() {