fix: assorted fixes

This commit is contained in:
DecDuck
2025-01-20 11:42:09 +11:00
parent 92729701c3
commit 89ea34c94e
16 changed files with 166 additions and 109 deletions
+10 -2
View File
@@ -20,10 +20,18 @@ import {
const router = useRouter();
const state = useAppState();
state.value = JSON.parse(await invoke("fetch_state"));
try {
state.value = JSON.parse(await invoke("fetch_state"));
} catch (e) {
console.error("failed to parse state", e);
}
router.beforeEach(async () => {
state.value = JSON.parse(await invoke("fetch_state"));
try {
state.value = JSON.parse(await invoke("fetch_state"));
} catch (e) {
console.error("failed to parse state", e);
}
});
setupHooks();