From 54d83bce883f30f66c79472ed25512e052bd9c06 Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Fri, 19 Aug 2022 15:13:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E8=A1=8C=E4=B8=BA=20=E8=BF=9B=E5=85=A5=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E8=87=AA=E5=8A=A8=E9=80=89=E4=B8=AD=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E5=85=A8=E9=83=A8=E6=96=87=E6=9C=AC=20#14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/preload.js | 1 + src/cpns/ClipFullData.vue | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/public/preload.js b/public/preload.js index d79bbde..2ebbf98 100644 --- a/public/preload.js +++ b/public/preload.js @@ -197,6 +197,7 @@ utools.onPluginEnter(() => { utools.copyText('ImageOverSized') globalOverSize = false } + document.querySelector('.clip-search input').select() // 进入插件将搜索框内容全选 focus() toTop() resetNav() diff --git a/src/cpns/ClipFullData.vue b/src/cpns/ClipFullData.vue index d260fcb..7c109e6 100644 --- a/src/cpns/ClipFullData.vue +++ b/src/cpns/ClipFullData.vue @@ -37,7 +37,6 @@ onMounted(() => { const { key } = e if (key === 'Escape' && props.fullData.data) { // 有值时执行退出 Overlay - // TODO: 目前仅在 detach时有效 如何取消 utools的默认退出行为 emit('onOverlayClick') e.stopPropagation() }