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