From b0258f9ab6f1edfa76a31cb7c6cc37239685ac9d Mon Sep 17 00:00:00 2001 From: qiqi Date: Sat, 21 Nov 2026 21:34:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(promptlib):=201.3.1=20=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E6=8F=92=E5=85=A5=E7=94=BB=E5=B8=83=E5=90=8E=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- promptlib/package.json | 2 +- promptlib/src/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/promptlib/package.json b/promptlib/package.json index 30e3cff..afd5590 100644 --- a/promptlib/package.json +++ b/promptlib/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/promptlib", "private": true, - "version": "1.3.0", + "version": "1.3.1", "description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供", "ibwPlugin": { "id": "promptlib", diff --git a/promptlib/src/index.js b/promptlib/src/index.js index f03cfcf..dee6cc0 100644 --- a/promptlib/src/index.js +++ b/promptlib/src/index.js @@ -601,7 +601,7 @@ }) }) cp.addEventListener('click', function () { Promise.resolve(api.copy(p.text || '')).then(function (r) { if (r && r.ok === false) notify('复制失败', 'err'); else notify('已复制全文') }) }) - ins.addEventListener('click', function () { Promise.resolve(api.insert(p.text || '', p.name || '')).then(function () { notify('已插入画布:' + (p.name || '提示词')) }).catch(function () { notify('插入画布失败', 'err') }) }) + ins.addEventListener('click', function () { Promise.resolve(api.insert(p.text || '', p.name || '')).then(function () { notify('已插入画布:' + (p.name || '提示词')); dlg.close() }).catch(function () { notify('插入画布失败', 'err') }) }) footEl.appendChild(del); footEl.appendChild(el('span', { class: 'iwb-drawer-spacer' })); footEl.appendChild(cp); footEl.appendChild(ins) }, }) @@ -837,7 +837,7 @@ global.IWBPluginHost.register({ id: 'promptlib', name: '提示词库', - version: '1.3.0', + version: '1.3.1', apiVersion: 1, capabilities: ['panels', 'promptlib'], data: { schemaVersion: 1, maxBytes: 65536 },