Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 重建索引以后刷新界面

Liang Dinga6ec16065ac7
diff --git a/kernel/model/box.go b/kernel/model/box.go
index 7cee0fdf63..9a11eed7c0 100644
--- a/kernel/model/box.go
+++ b/kernel/model/box.go
@@ -510,7 +510,7 @@ func FullReindex() {
}
func fullReindex() {
- msgId := util.PushMsg(Conf.Language(35), 7*1000)
+ util.PushMsg(Conf.Language(35), 7*1000)
WaitForWritingFiles()
if err := sql.InitDatabase(true); nil != err {
@@ -528,10 +528,7 @@ func fullReindex() {
treenode.SaveBlockTree(true)
LoadFlashcards()
debug.FreeOSMemory()
- go func() {
- time.Sleep(3 * time.Second)
- util.PushClearMsg(msgId)
- }()
+ util.ReloadUI()
}
func ChangeBoxSort(boxIDs []string) {