fix: check __TAURI_INTERNALS__ for Tauri availability

This commit is contained in:
2026-06-15 10:34:39 +08:00
parent f597db23cc
commit edab5158f0

View File

@@ -166,7 +166,8 @@ const skippedPeople = computed(() => {
onMounted(async () => {
// Wait for Tauri to be ready
if (!(window as any).__TAURI__) {
const tauri = (window as any).__TAURI_INTERNALS__ || (window as any).__TAURI__
if (!tauri) {
console.error('Tauri not available - must run inside Tauri webview')
loading.value = false
return