From 8a9a570b0ee5fc30ace92d1e0f45ca822fa2b494 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 2 Dec 2022 17:37:29 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6760 --- app/src/layout/dock/Backlink.ts | 1 + app/src/types/index.d.ts | 1 + app/src/util/Tree.ts | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/layout/dock/Backlink.ts b/app/src/layout/dock/Backlink.ts index fe0207f79..a62586336 100644 --- a/app/src/layout/dock/Backlink.ts +++ b/app/src/layout/dock/Backlink.ts @@ -406,6 +406,7 @@ export class Backlink extends Model { breadcrumb: false, } }); + editor.protyle.notebookId = liElement.getAttribute("data-notebook-id"); this.editors.push(editor); }); } diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts index fe6203c2a..cefe7d9a7 100644 --- a/app/src/types/index.d.ts +++ b/app/src/types/index.d.ts @@ -513,6 +513,7 @@ declare interface IFile { } declare interface IBlockTree { + box: string, nodeType: string, hPath: string, subType: string, diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.ts index e7096ab01..fe092b8d5 100644 --- a/app/src/util/Tree.ts +++ b/app/src/util/Tree.ts @@ -76,8 +76,9 @@ export class Tree { } const hasChild = (item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0); html += `