Merge branch release/21.7.7 of zentao/zentaopms (#12453)

This commit is contained in:
刘刚
2025-11-20 17:52:18 +08:00
committed by Gitfox
+1 -1
View File
@@ -956,7 +956,7 @@ const actionsMap =
let aiAction = null;
const docAIPrompts = window.docAIPrompts;
if(docAIPrompts && docAIPrompts.length)
if(!isApi && docAIPrompts && docAIPrompts.length)
{
const aiLang = window.docAIPromptLang;
const aiActionItems = docAIPrompts.map(prompt => ({icon: 'magic', text: prompt.status !== 'active' ? zui.html`${prompt.name}<span class="label size-sm gray-500-pale ring-gray-500 whitespace-nowrap ml-1">${aiLang.statuses[prompt.status]}</span>` : prompt.name, command: `executeAIPrompt/${prompt.id}/${doc.id}`, hint: prompt.desc}));