Update home.tsx

This commit is contained in:
Ted 2025-02-20 16:38:10 +08:00
parent 4577b835fd
commit 82a0876a7b
1 changed files with 4 additions and 2 deletions

View File

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