fix: preserve desktop session across restarts

This commit is contained in:
2026-06-18 23:51:30 +08:00
parent d8195bc935
commit 1523956839
4 changed files with 78 additions and 23 deletions
+11
View File
@@ -67,6 +67,17 @@ if (rendererWindowMode === 'main') {
})
}
if (rendererWindowMode === 'login') {
if (isAuthenticated.value) {
syncWindowMode(true)
}
watch(isAuthenticated, (next) => {
if (next) {
syncWindowMode(true)
}
})
}
onMounted(() => {
if (rendererWindowMode !== 'login') {
void syncRuntimeSession().catch((err) => {