Update home.tsx

This commit is contained in:
Ted 2025-02-20 16:38:10 +08:00
parent 4577b835fd
commit 82a0876a7b

View File

@ -295,8 +295,10 @@ export function Home() {
console.log("window.ReactNativeWebView Err"); console.log("window.ReactNativeWebView Err");
} }
} }
} catch { } catch (err) {
window.ReactNativeWebView.postMessage("try catch 失败"); window.ReactNativeWebView.postMessage(
`${(err as Error).message} try catch 失败`,
);
} }
return; return;