소스 검색

:art: fix https://github.com/siyuan-note/siyuan/issues/8216

Vanessa 2 년 전
부모
커밋
7572db4012
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/src/protyle/index.ts
  2. 1 1
      kernel/util/websocket.go

+ 1 - 1
app/src/protyle/index.ts

@@ -94,7 +94,7 @@ export class Protyle {
                                 reloadProtyle(this.protyle, false);
                             }
                             break;
-                        case "addLoadding":
+                        case "addLoading":
                             if (data.data === this.protyle.block.rootID) {
                                 addLoading(this.protyle, data.msg);
                             }

+ 1 - 1
kernel/util/websocket.go

@@ -219,7 +219,7 @@ func PushProtyleReload(rootID string) {
 }
 
 func PushProtyleLoading(rootID, msg string) {
-	BroadcastByType("protyle", "addLoadding", 0, msg, rootID)
+	BroadcastByType("protyle", "addLoading", 0, msg, rootID)
 }
 
 func PushDownloadProgress(id string, percent float32) {