Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/16993

Vanessa4efa6c9bcb6a
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index a826a3e087..9ec132b244 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -1166,8 +1166,9 @@ export const getArticle = (options: {
method: options.config?.method || null,
types: options.config?.types || null,
};
+ // https://ld246.com/article/1770132984152
if (options.edit.protyle.options.render.title) {
- options.edit.protyle.title.render(options.edit.protyle, response);
+ options.edit.protyle.wysiwyg.renderCustom(response.data.ial);
}
onGet({
updateReadonly: true,
@@ -1213,6 +1214,10 @@ export const getArticle = (options: {
}
}
});
+ // 只能放在 onGet 后,否则 title 不会更新 https://github.com/siyuan-note/siyuan/issues/16739
+ if (options.edit.protyle.options.render.title) {
+ options.edit.protyle.title.render(options.edit.protyle, response);
+ }
});
});
});