diff --git a/src/components/CommandRunResult.vue b/src/components/CommandRunResult.vue index 0e92208..f57bc72 100644 --- a/src/components/CommandRunResult.vue +++ b/src/components/CommandRunResult.vue @@ -13,11 +13,11 @@
+ :name="runResultStatus ? 'task_alt' : 'error'" size="sm"> - 运行结果 + 运行结果
- diff --git a/src/components/popup/ResultMenu.vue b/src/components/popup/ResultMenu.vue index 0745a77..5a6c0a5 100644 --- a/src/components/popup/ResultMenu.vue +++ b/src/components/popup/ResultMenu.vue @@ -1,16 +1,17 @@ @@ -35,13 +37,11 @@ export default { }, methods: { copyResult() { - utools.copyText(this.content); + window.utools.copyText(this.content); quickcommand.showMessageBox("已复制到剪贴板"); }, sendResult() { - utools.copyText(this.content); - utools.hideMainWindow(); - quickcommand.simulatePaste(); + window.utools.hideMainWindowTypeString(this.content); }, dataUrlToImg() { let imgs = this.content diff --git a/src/js/options/outputTypes.js b/src/js/options/outputTypes.js index 7fe5f70..1e7625e 100644 --- a/src/js/options/outputTypes.js +++ b/src/js/options/outputTypes.js @@ -41,22 +41,22 @@ const outputTypes = { label: "复制到剪贴板", icon: "content_paste", outPlugin: true, - action: result => window.copyTo(result) + action: result => window.utools.copyText(result) }, send: { name: "send", label: "发送到活动窗口", icon: "web_asset", outPlugin: true, - action: result => window.send(result) + action: result => window.utools.hideMainWindowTypeString(result) }, notice: { name: "notice", label: "发送系统通知", icon: "sms", outPlugin: true, - action: result => window.message(result) + action: result => window.utools.showNotification(result) }, }; -export default outputTypes \ No newline at end of file +export default outputTypes