mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-30 04:42:45 +08:00
修复复制命令时命令名称显示异常的BUG
This commit is contained in:
parent
bc6141f150
commit
dd7fca3b62
@ -191,10 +191,12 @@ export default {
|
||||
},
|
||||
// 导出到剪贴板
|
||||
exportCommandRaw() {
|
||||
const commandName = this.commandInfo.features.explain.replace(
|
||||
/<strong style=".*?">|<\/strong>/g,
|
||||
""
|
||||
);
|
||||
utools.copyText(JSON.stringify(this.getRawCommand(), null, 4)) &&
|
||||
utools.showNotification(
|
||||
`「${this.commandInfo.features.explain}」已复制到剪贴板`
|
||||
);
|
||||
utools.showNotification(`「${commandName}」已复制到剪贴板`);
|
||||
},
|
||||
// 创建命令副本
|
||||
createCommandCopy() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user