This commit is contained in:
parent
18a9d6b245
commit
387d63de9b
2 changed files with 11 additions and 3 deletions
|
@ -17,7 +17,7 @@ export const initConfigSearch = (element: HTMLElement) => {
|
|||
"historyRetentionDays", "historyRetentionDaysTip", "clearHistory", "katexMacros", "katexMacrosTip",
|
||||
"editReadonly", "editReadonlyTip", "embedBlockBreadcrumb", "embedBlockBreadcrumbTip", "outdentTip",
|
||||
"outdent", "floatWindowMode", "floatWindowModeTip", "justify", "justifyTip", "rtl", "rtlTip", "spellcheck",
|
||||
"spellcheckTip"
|
||||
"spellcheckTip", "backlinkExpand", "backlinkExpandTip"
|
||||
]),
|
||||
|
||||
// 文档树
|
||||
|
|
|
@ -541,7 +541,11 @@ export class Backlink extends Model {
|
|||
if (data.mentionsCount === 0) {
|
||||
this.status[this.blockId].backlinkMStatus = 3;
|
||||
} else {
|
||||
this.status[this.blockId].backlinkMOpenIds = [data.backmentions[0].id];
|
||||
Array.from({length: window.siyuan.config.editor.backlinkExpandCount}).forEach((item, index) => {
|
||||
if (data.backmentions[index]) {
|
||||
this.status[this.blockId].backlinkMOpenIds.push(data.backmentions[index].id);
|
||||
}
|
||||
});
|
||||
if (data.linkRefsCount === 0) {
|
||||
this.status[this.blockId].backlinkMStatus = 0;
|
||||
} else {
|
||||
|
@ -549,7 +553,11 @@ export class Backlink extends Model {
|
|||
}
|
||||
}
|
||||
if (data.linkRefsCount > 0) {
|
||||
this.status[this.blockId].backlinkOpenIds = [data.backlinks[0].id];
|
||||
Array.from({length: window.siyuan.config.editor.backlinkExpandCount}).forEach((item, index) => {
|
||||
if (data.backlinks[index]) {
|
||||
this.status[this.blockId].backlinkOpenIds.push(data.backlinks[index].id);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue