mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 10:14:21 +01:00
This commit is contained in:
parent
ca931e64d4
commit
4efa6c9bcb
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue