diag: v3.26.177 插件写回加可见 toast(成功/失败原因)
Verify (Gitea) / gate (build · unit · facts) (push) Canceled after 1m0s

This commit is contained in:
qiqi committed 2026-12-01 21:00:21 +08:00
1 parent d4983a8aa1
commit 44073f8d09
5 files changed
+9 -4

No files matched your search

+5
View File
@@ -6188,6 +6188,7 @@ const tbCenterSeed = (type, refs) => {
// v3.26.174:同步失效这张图的缩略图/URL 缓存并触发重渲染(与 saveNodeImage 同因)
try { const k = wDisplayThumbKeyOf(String(dataUrl || '')); if (k) { displayThumbs.delete(k); displayThumbsSm.delete(k) } } catch (e1) { /* ignore */ }
try { if (typeof wThumbBump === 'function') wThumbBump() } catch (e2) { /* ignore */ }
try { showToast('已替换图片', 'ok') } catch (eT) { /* ignore */ }
return true
},
saveNodeImage: (id, dataUrl) => {
@@ -6203,6 +6204,10 @@ const tbCenterSeed = (type, refs) => {
const hasLocal = nd && nd.data ? (nd.data.localRef ? 'Y' : 'N') : '?'
wLog('plugin-img', 'save id=' + id + ' ok=' + (r && r.ok) + ' err=' + String((r && r.error) || '-') + ' len=' + String(dataUrl || '').length + ' localRef=' + hasLocal + ' keys=' + keys)
} catch (eL) { /* ignore */ }
try {
if (r && r.ok) showToast('已覆盖原图', 'ok')
else showToast('覆盖失败:' + String((r && r.error) || '未知原因'), 'err')
} catch (eT) { /* ignore */ }
if (r && r.ok) {
try {
const k = wDisplayThumbKeyOf(String(dataUrl || ''))
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "image-workbench-web",
"private": true,
"version": "3.26.176",
"version": "3.26.177",
"description": "Browser-based node canvas image workbench",
"scripts": {
"build": "node scripts/build.js && node scripts/copy-plugins.js",
+1 -1
View File
@@ -2014,7 +2014,7 @@ dependencies = [
[[package]]
name = "image-workbench"
version = "3.26.175"
version = "3.26.176"
dependencies = [
"arboard",
"base64 0.22.1",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "image-workbench"
version = "3.26.176"
version = "3.26.177"
description = "无限画布 · 生图工作台桌面版"
authors = ["malongan"]
license = ""
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "image-workbench",
"version": "3.26.176",
"version": "3.26.177",
"identifier": "com.malongan.imageworkbench",
"build": {
"frontendDist": "../dist",