fix: web page unmount event (#645)

* fix: web page unmont event

* docs: update notes
This commit is contained in:
BiggerRain
2025-06-10 14:28:00 +08:00
committed by GitHub
parent 335a906674
commit da917e6012
10 changed files with 144 additions and 136 deletions

View File

@@ -15,10 +15,6 @@ function MainApp() {
setIsTauri(true);
}, []);
const hideCoco = useCallback(() => {
return platformAdapter.hideWindow();
}, []);
useSyncStore();
const snapshotUpdate = useAppearanceStore((state) => state.snapshotUpdate);
@@ -41,11 +37,7 @@ function MainApp() {
return (
<>
<SearchChat
isTauri={true}
hideCoco={hideCoco}
hasModules={["search", "chat"]}
/>
<SearchChat isTauri={true} hasModules={["search", "chat"]} />
<UpdateApp checkUpdate={checkUpdate} relaunchApp={relaunchApp} />
</>
);