diff --git a/plugins/album/main.js b/plugins/album/main.js index 6e37710..4477153 100644 --- a/plugins/album/main.js +++ b/plugins/album/main.js @@ -543,7 +543,7 @@ global.IWBPluginHost.register({ id: 'album', name: '相册', - version: '1.0.3', + version: '1.0.4', apiVersion: 1, capabilities: ['nodeTypes', 'images', 'files'], settings: { @@ -559,6 +559,14 @@ ports: { in: true, out: true }, defaults: { outKind: 'images', items: [], albumMode: 'per-image', density: 'S', page: 0, onlyPage: false, keepOriginal: ctx.settings.get('keepOriginal') !== false }, render: function (node, props, host) { + // 自愈(2026-11-26):旧版本/兜底路径建出来的节点可能没有 outKind, + // 那样连线规则会把相册当普通插件节点(只能连中继)。这里补写一次默认值。 + try { + const d0 = node && node.data + if (d0 && d0.outKind !== 'images') { + props.onUpdate(node.id, { outKind: 'images', items: Array.isArray(d0.items) ? d0.items : [] }) + } + } catch (e) { /* ignore */ } let st = STATE.get(host) if (!st || st.nodeId !== node.id) { st = buildShell(ctx, node, props, host); STATE.set(host, st) } try { sync(ctx, st, node, props) } catch (e) { diff --git a/plugins/album/manifest.json b/plugins/album/manifest.json index d3f6674..98de4f2 100644 --- a/plugins/album/manifest.json +++ b/plugins/album/manifest.json @@ -1,7 +1,7 @@ { "id": "album", "name": "相册", - "version": "1.0.3", + "version": "1.0.4", "apiVersion": 1, "main": "main.js", "style": "styles.css", @@ -14,7 +14,7 @@ "出图" ], "files": { - "main.js": "a00a449d6905e98f6625fb44c062f9e5a7eab2c5f5560035028f1f3b9f6f95a3", + "main.js": "c359d25928f93bbbaac07dd12500226405b21918f3488fcb40bb79d5c45fe01d", "styles.css": "ada02ea71832d63c8ebe9e07d03dfb7d71f6d1471366f1f4e6c7eeab736dc573" } } diff --git a/plugins/index.json b/plugins/index.json index aee1e9c..9dd5c2c 100644 --- a/plugins/index.json +++ b/plugins/index.json @@ -4,9 +4,9 @@ "dir": "album", "main": "main.js", "style": "styles.css", - "version": "1.0.3", + "version": "1.0.4", "files": { - "main.js": "a00a449d6905e98f6625fb44c062f9e5a7eab2c5f5560035028f1f3b9f6f95a3", + "main.js": "c359d25928f93bbbaac07dd12500226405b21918f3488fcb40bb79d5c45fe01d", "styles.css": "ada02ea71832d63c8ebe9e07d03dfb7d71f6d1471366f1f4e6c7eeab736dc573" } },