diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index ffd61815f..70a8f0100 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();