From a038421e73ac3a943995e3522a68bb57010092ce Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 20 Dec 2025 17:26:00 +0800 Subject: [PATCH] :bug: Data indexing is abnormal after switching workspaces on mobile https://github.com/siyuan-note/siyuan/issues/16646 Signed-off-by: Daniel <845765@qq.com> --- kernel/harmony/kernel.go | 5 +++++ kernel/mobile/kernel.go | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/kernel/harmony/kernel.go b/kernel/harmony/kernel.go index 40bf54a27..731e02403 100644 --- a/kernel/harmony/kernel.go +++ b/kernel/harmony/kernel.go @@ -138,4 +138,9 @@ func Unzip(zipFilePath, destination *C.char) { } } +//export Exit +func Exit() { + os.Exit(logging.ExitCodeOk) +} + func main() {} diff --git a/kernel/mobile/kernel.go b/kernel/mobile/kernel.go index 98d81ec0f..1194c7d25 100644 --- a/kernel/mobile/kernel.go +++ b/kernel/mobile/kernel.go @@ -292,3 +292,7 @@ func FilterUploadFileName(name string) string { func AssetName(name string) string { return util.AssetName(name, ast.NewNodeID()) } + +func Exit() { + os.Exit(logging.ExitCodeOk) +}