🎨 前端用户界面引入后台任务列表 https://github.com/siyuan-note/siyuan/issues/7117

This commit is contained in:
Liang Ding 2023-01-24 17:40:26 +08:00
parent 3b9ae96dbd
commit d95c6bd467
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 29 additions and 0 deletions

View file

@ -151,6 +151,10 @@ func PushStatusBar(msg string) {
BroadcastByType("main", "statusbar", 0, msg, nil)
}
func PushBackgroundTask(data map[string]interface{}) {
BroadcastByType("main", "backgroundtask", 0, "", data)
}
type BlockStatResult struct {
RuneCount int `json:"runeCount"`
WordCount int `json:"wordCount"`