mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 03:04:21 +01:00
♻️ 重命名重建索引函数
This commit is contained in:
parent
e2e929538b
commit
67ff76c605
6 changed files with 11 additions and 11 deletions
|
|
@ -296,7 +296,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
}
|
||||
|
||||
IncSync()
|
||||
RefreshFileTree()
|
||||
FullReindex()
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -343,7 +343,7 @@ func ImportData(zipPath string) (err error) {
|
|||
}
|
||||
|
||||
IncSync()
|
||||
RefreshFileTree()
|
||||
FullReindex()
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -518,7 +518,7 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
|
|||
}
|
||||
|
||||
IncSync()
|
||||
RefreshFileTree()
|
||||
FullReindex()
|
||||
} else { // 导入单个文件
|
||||
fileName := filepath.Base(localPath)
|
||||
if !strings.HasSuffix(fileName, ".md") && !strings.HasSuffix(fileName, ".markdown") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue