From 82a0876a7bdd4ddba2070a50e0a8821af413a855 Mon Sep 17 00:00:00 2001 From: Ted <2508067350@qq.com> Date: Thu, 20 Feb 2025 16:38:10 +0800 Subject: [PATCH] Update home.tsx --- app/components/home.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/components/home.tsx b/app/components/home.tsx index d8aa8b054..944371fc6 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -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;