mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-09 21:54:18 +08:00
This commit is contained in:
parent
18a9d6b245
commit
387d63de9b
@ -17,7 +17,7 @@ export const initConfigSearch = (element: HTMLElement) => {
|
|||||||
"historyRetentionDays", "historyRetentionDaysTip", "clearHistory", "katexMacros", "katexMacrosTip",
|
"historyRetentionDays", "historyRetentionDaysTip", "clearHistory", "katexMacros", "katexMacrosTip",
|
||||||
"editReadonly", "editReadonlyTip", "embedBlockBreadcrumb", "embedBlockBreadcrumbTip", "outdentTip",
|
"editReadonly", "editReadonlyTip", "embedBlockBreadcrumb", "embedBlockBreadcrumbTip", "outdentTip",
|
||||||
"outdent", "floatWindowMode", "floatWindowModeTip", "justify", "justifyTip", "rtl", "rtlTip", "spellcheck",
|
"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) {
|
if (data.mentionsCount === 0) {
|
||||||
this.status[this.blockId].backlinkMStatus = 3;
|
this.status[this.blockId].backlinkMStatus = 3;
|
||||||
} else {
|
} 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) {
|
if (data.linkRefsCount === 0) {
|
||||||
this.status[this.blockId].backlinkMStatus = 0;
|
this.status[this.blockId].backlinkMStatus = 0;
|
||||||
} else {
|
} else {
|
||||||
@ -549,7 +553,11 @@ export class Backlink extends Model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (data.linkRefsCount > 0) {
|
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…
Reference in New Issue
Block a user