mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
♻️ 重命名重建索引函数
This commit is contained in:
@@ -55,7 +55,7 @@ func refreshFiletree(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
model.RefreshFileTree()
|
||||
model.FullReindex()
|
||||
}
|
||||
|
||||
func doc2Heading(c *gin.Context) {
|
||||
|
||||
@@ -213,7 +213,7 @@ func setSearch(c *gin.Context) {
|
||||
model.Conf.Save()
|
||||
sql.SetCaseSensitive(s.CaseSensitive)
|
||||
if s.CaseSensitive != oldCaseSensitive {
|
||||
model.RefreshFileTree()
|
||||
model.FullReindex()
|
||||
}
|
||||
sql.ClearVirtualRefKeywords()
|
||||
ret.Data = s
|
||||
|
||||
Reference in New Issue
Block a user