Skip to content

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

:art: The list in the backlink panel no longer collapses automatically https://github.com/siyuan-note/siyuan/issues/17362

Daniel79228dde16e9
diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts
index ffd61815f5..70a8f01000 100644
--- a/app/src/protyle/index.ts
+++ b/app/src/protyle/index.ts
@@ -306,9 +306,15 @@ export class Protyle {
}
let needCreateAction = "";
data.data[0].doOperations.find((item: IOperation) => {
- if (this.protyle.options.backlinkData && ["delete", "move"].includes(item.action)) {
+ if (this.protyle.options.backlinkData && ["delete", "move"].includes(item.action)) {
// 只对特定情况刷新,否则展开、编辑等操作刷新会频繁
/// #if !MOBILE
+ if (2 == data.data[0].doOperations.length && "insert" === data.data[0].doOperations[0].action && "delete" === data.data[0].doOperations[1].action) {
+ // 从反链面板复制块到正文粘贴时不再自动刷新反链面板
+ // The list in the backlink panel no longer collapses automatically https://github.com/siyuan-note/siyuan/issues/17362
+ return true;
+ }
+
getAllModels().backlink.find(backlinkItem => {
if (backlinkItem.element.contains(this.protyle.element)) {
backlinkItem.refresh();