mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
♻️ 改进后台任务判断重复
This commit is contained in:
parent
4f717a81cb
commit
7d7a198982
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ const (
|
|||
ReloadUI = "task.reload.ui" // 重载 UI
|
||||
)
|
||||
|
||||
func ContainIndexTask(action string, moreActions ...string) bool {
|
||||
func Contain(action string, moreActions ...string) bool {
|
||||
actions := append(moreActions, action)
|
||||
actions = gulu.Str.RemoveDuplicatedElem(actions)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue