Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: backlink ctrl click

Vanessa91e4cf782a00
diff --git a/app/src/layout/dock/Backlink.ts b/app/src/layout/dock/Backlink.ts
index d0de811021..5d0250b01c 100644
--- a/app/src/layout/dock/Backlink.ts
+++ b/app/src/layout/dock/Backlink.ts
@@ -154,7 +154,7 @@ export class Backlink extends Model {
this.setFocus();
this.mTree.element.querySelector(".b3-list-item--focus")?.classList.remove("b3-list-item--focus");
},
- ctrlClick(element) {
+ ctrlClick: (element) => {
openFileById({
id: element.getAttribute("data-node-id"),
action: [Constants.CB_GET_CONTEXT]
@@ -514,7 +514,15 @@ export class Backlink extends Model {
}
}
- public render(data: { box: string, backlinks: IBlockTree[], backmentions: IBlockTree[], linkRefsCount: number, mentionsCount: number, k: string, mk: string }) {
+ public render(data: {
+ box: string,
+ backlinks: IBlockTree[],
+ backmentions: IBlockTree[],
+ linkRefsCount: number,
+ mentionsCount: number,
+ k: string,
+ mk: string
+ }) {
if (!data) {
data = {
box: "",