feat: introduce desktop app with Tauri (#296)

This commit is contained in:
Acbox Liu
2026-03-27 18:08:42 +08:00
committed by GitHub
parent f61666479c
commit 44c92f198b
71 changed files with 6019 additions and 740 deletions
+8
View File
@@ -168,4 +168,12 @@ router.beforeEach((to) => {
return token ? true : { name: 'Login' }
})
router.afterEach(async (to) => {
if (!('__TAURI_INTERNALS__' in window)) return
try {
const { invoke } = await import('@tauri-apps/api/core')
invoke('resize_for_route', { route: to.path })
} catch { /* not in Tauri */ }
})
export default router