mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2026-07-26 01:34:46 +10:00
fix: assorted fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user