فهرست منبع

:art: The outline item in the outline panel supports dragging to adjust the level and position https://github.com/siyuan-note/siyuan/issues/7957

Daniel 1 سال پیش
والد
کامیت
a08eaccfef
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 1 1
      kernel/model/outline.go
  2. 4 0
      kernel/util/websocket.go

+ 1 - 1
kernel/model/outline.go

@@ -139,7 +139,7 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
 		return
 	}
 
-	util.PushProtyleReload(tree.Root.ID)
+	util.PushReloadDoc(tree.Root.ID)
 	return
 }
 

+ 4 - 0
kernel/util/websocket.go

@@ -216,6 +216,10 @@ func PushClearProgress() {
 	BroadcastByType("main", "cprogress", 0, "", nil)
 }
 
+func PushReloadDoc(rootID string) {
+	BroadcastByType("main", "reloaddoc", 0, "", rootID)
+}
+
 func PushProtyleReload(rootID string) {
 	BroadcastByType("protyle", "reload", 0, "", rootID)
 }