From e6400b35c39270bfa1445671d162cbc9afe58b28 Mon Sep 17 00:00:00 2001 From: qiqi Date: Sun, 22 Nov 2026 17:27:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(promptlib):=20=E7=A7=BB=E9=99=A4=E9=81=97?= =?UTF-8?q?=E7=95=99=E7=9A=84=20setBtn=20=E5=BC=95=E7=94=A8=EF=BC=88?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=B7=B2=E5=B9=B6=E5=85=A5=E5=AE=BF=E4=B8=BB?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- promptlib/src/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/promptlib/src/index.js b/promptlib/src/index.js index 2c2f588..97e7b35 100644 --- a/promptlib/src/index.js +++ b/promptlib/src/index.js @@ -1346,7 +1346,6 @@ search.addEventListener('input', function () { query = search.value; render(); var n = wrap.querySelector('input.iwb-input'); if (n) { n.focus(); try { n.setSelectionRange(n.value.length, n.value.length) } catch (e) { /* ignore */ } } }) var newBtn = el('button', { class: 'iwb-btn iwb-btn-sm iwb-btn-primary', title: '新建提示词', text: '+ 新建提示词' }) - setBtn.addEventListener('click', openSettings) newBtn.addEventListener('click', function () { openEditModal(null, true) }) top.appendChild(search); top.appendChild(newBtn) fixed.appendChild(top)