delete app log

This commit is contained in:
Ted
2025-02-20 19:12:51 +08:00
parent f7dde8eba8
commit 547db3a977
2 changed files with 1 additions and 27 deletions

View File

@@ -284,30 +284,12 @@ export function Home() {
if (isString(data)) {
try {
window.ReactNativeWebView.postMessage(`${data} 从App获取的数据`);
const params = JSON.parse(data);
if (!isEmpty(params?.ometoken) && params?.from === "OmeOfficeApp") {
appConfig.setOmeToken(params?.ometoken ?? "");
try {
const message = "收到消息";
window.ReactNativeWebView.postMessage(message);
} catch {
window.ReactNativeWebView.postMessage("err 失败");
console.log("window.ReactNativeWebView Err");
}
}
} catch (err) {
try {
window.ReactNativeWebView.postMessage(
`${(err as Error).message} -- try catch 失败`,
);
} catch {}
}
} catch {}
return;
}