mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 22:43:42 +08:00
Update home.tsx
This commit is contained in:
@@ -280,7 +280,7 @@ export function Home() {
|
||||
|
||||
if (isString(data)) {
|
||||
try {
|
||||
const params = JSON.parse(data);
|
||||
// const params = JSON.parse(data);
|
||||
|
||||
window.ReactNativeWebView.postMessage(`${data} 从App获取的数据`);
|
||||
|
||||
@@ -298,9 +298,7 @@ export function Home() {
|
||||
// }
|
||||
// }
|
||||
} catch (err) {
|
||||
window.ReactNativeWebView.postMessage(
|
||||
`${(err as Error).message} try catch 失败`,
|
||||
);
|
||||
window.ReactNativeWebView.postMessage(`try catch 失败`);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user