From 2ee83ed1109d5da00071fef792b605ca8d346664 Mon Sep 17 00:00:00 2001 From: sunhao Date: Mon, 8 Dec 2025 15:29:07 +0800 Subject: [PATCH] * [misc] Update reference handling in registerZentaoAIPlugin to support fallback attributes for object title, type, and ID. --- www/js/zui3/ai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/zui3/ai.js b/www/js/zui3/ai.js index 61c8a0dc8c..7002d62e2b 100644 --- a/www/js/zui3/ai.js +++ b/www/js/zui3/ai.js @@ -429,7 +429,7 @@ function registerZentaoAIPlugin(lang) newPropms.push(item.content); if(refKeys.has(item.key)) return; const itemAttrs = item.attrs || {}; - newRefs.push({key: item.key, name: itemAttrs.objectTitle, type: itemAttrs.objectType, id: itemAttrs.objectID}) + newRefs.push({key: item.key, name: itemAttrs.objectTitle || item.knowledgeTitle, type: itemAttrs.objectType || 'knowledge', id: itemAttrs.objectID || item.knowledgeID}) refKeys.add(item.key); }); info.chat.$local.ztChunks = ztChunks;