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

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel
2026-04-07 16:50:48 +08:00
parent 847e8a303a
commit 79228dde16
+7 -1
View File
@@ -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();