Update home.tsx
This commit is contained in:
parent
309509d1ad
commit
9d4282aa6f
|
@ -280,7 +280,7 @@ export function Home() {
|
||||||
|
|
||||||
if (isString(data)) {
|
if (isString(data)) {
|
||||||
try {
|
try {
|
||||||
const params = JSON.parse(data);
|
// const params = JSON.parse(data);
|
||||||
|
|
||||||
window.ReactNativeWebView.postMessage(`${data} 从App获取的数据`);
|
window.ReactNativeWebView.postMessage(`${data} 从App获取的数据`);
|
||||||
|
|
||||||
|
@ -298,9 +298,7 @@ export function Home() {
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
window.ReactNativeWebView.postMessage(
|
window.ReactNativeWebView.postMessage(`try catch 失败`);
|
||||||
`${(err as Error).message} try catch 失败`,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue