Vanessa 2024-12-07 11:03:30 +08:00
parent dacbb22ab4
commit 5abdf08706
6 changed files with 15 additions and 0 deletions

View file

@ -40,6 +40,7 @@ export const reloadProtyle = (protyle: IProtyle, focus: boolean, updateReadonly?
fetchPost(isMention ? "/api/ref/getBackmentionDoc" : "/api/ref/getBacklinkDoc", {
defID: protyle.element.getAttribute("data-defid"),
refTreeID: protyle.block.rootID,
highlight: CSS && CSS.highlights,
keyword: isMention ? inputsElement[1].value : inputsElement[0].value,
}, response => {
protyle.options.backlinkData = isMention ? response.data.backmentions : response.data.backlinks;