mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
This commit is contained in:
parent
284d78bc27
commit
5f8c76fc87
9 changed files with 443 additions and 23 deletions
|
|
@ -429,7 +429,7 @@ export const updateBacklinkGraph = (models: IModels, protyle: IProtyle) => {
|
|||
item.searchGraph(true, blockId);
|
||||
}
|
||||
});
|
||||
models.backlinks.forEach(item => {
|
||||
models.backlink.forEach(item => {
|
||||
if (item.type === "local" && item.rootId !== protyle?.block?.rootID) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -443,7 +443,7 @@ export const updateBacklinkGraph = (models: IModels, protyle: IProtyle) => {
|
|||
item.element.querySelector('.block__icon[data-type="refresh"] svg').classList.add("fn__rotate");
|
||||
fetchPost("/api/ref/getBacklink", {
|
||||
id: blockId || "",
|
||||
beforeLen: item.element.querySelector('.block__icon[data-type="more"]').classList.contains("ft__primary") ? item.beforeLen * 20 : item.beforeLen,
|
||||
beforeLen: 12,
|
||||
k: item.inputsElement[0].value,
|
||||
mk: item.inputsElement[1].value,
|
||||
}, response => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue