mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🎨 前端用户界面引入后台任务列表 https://github.com/siyuan-note/siyuan/issues/7117
This commit is contained in:
parent
72a4e757a2
commit
a99ca6d62f
1 changed files with 4 additions and 0 deletions
|
@ -126,6 +126,10 @@ func StatusLoop() {
|
||||||
}
|
}
|
||||||
items = append(items, item)
|
items = append(items, item)
|
||||||
}
|
}
|
||||||
|
if 1 > len(items) {
|
||||||
|
items = []map[string]interface{}{}
|
||||||
|
}
|
||||||
|
data["tasks"] = items
|
||||||
util.PushBackgroundTask(data)
|
util.PushBackgroundTask(data)
|
||||||
if 0 < len(tasks) {
|
if 0 < len(tasks) {
|
||||||
time.Sleep(1000 * time.Millisecond)
|
time.Sleep(1000 * time.Millisecond)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue