From 413d89183a762e2ee5706f966fa711ae43e4397d Mon Sep 17 00:00:00 2001 From: fofolee Date: Fri, 27 May 2022 08:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=B6=E8=97=8F=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E3=80=81=E7=BD=91=E5=9D=80=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/quickFeatures/FavFile.vue | 2 +- src/components/quickFeatures/FavUrl.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/quickFeatures/FavFile.vue b/src/components/quickFeatures/FavFile.vue index d23acdc..c855161 100644 --- a/src/components/quickFeatures/FavFile.vue +++ b/src/components/quickFeatures/FavFile.vue @@ -2,7 +2,7 @@ export default { mounted() { utools.setExpendHeight(0); - this.$root.payload.forEach((file) => { + this.$root.enterData.payload.forEach((file) => { let uid = this.getUid(); let fileInfo = window.getFileInfo({ type: "file", diff --git a/src/components/quickFeatures/FavUrl.vue b/src/components/quickFeatures/FavUrl.vue index 51ef660..57da8a7 100644 --- a/src/components/quickFeatures/FavUrl.vue +++ b/src/components/quickFeatures/FavUrl.vue @@ -24,7 +24,7 @@ export default { ); url = choise.text + "://" + url; } - let title = this.$root.payload.title + let title = this.$root.enterData.payload.title .replace(/和另外 \d+ 个页面.*/, "") .replace(/[-|—] .*?[Edge|Firefox|Chrome].*/, "") .trim(); @@ -39,7 +39,7 @@ export default { let uid = this.getUid(); let command = { features: { - explain: `访问${title}`, + explain: title, cmds: [title], platform: ["linux", "win32", "darwin"], code: `key_${uid}`, @@ -51,7 +51,7 @@ export default { }; try { let res = await quickcommand.downloadFile(iconUrl, iconPath); - if (res) command.features.icon = iconPath; + if (res) command.features.icon = window.getBase64Ico(iconPath); } catch (e) {} this.importCommand(command); utools.showNotification("操作成功!");