Browse Source

:bug: 标签名称存在包含关系时重命名标签会出现误修改 Fix https://github.com/siyuan-note/siyuan/issues/5816

Liang Ding 2 years ago
parent
commit
b25c0f9b94
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/model/tag.go

+ 1 - 1
kernel/model/tag.go

@@ -128,7 +128,7 @@ func RenameTag(oldLabel, newLabel string) (err error) {
 	}
 	}
 
 
 	util.PushEndlessProgress(Conf.Language(110))
 	util.PushEndlessProgress(Conf.Language(110))
-	util.RandomSleep(1000, 2000)
+	util.RandomSleep(500, 1000)
 
 
 	tags := sql.QueryTagSpansByKeyword(oldLabel, 102400)
 	tags := sql.QueryTagSpansByKeyword(oldLabel, 102400)
 	treeBlocks := map[string][]string{}
 	treeBlocks := map[string][]string{}