This commit is contained in:
Ted
2025-02-20 19:31:23 +08:00
parent 72770ca80c
commit 7ad499308f
2 changed files with 29 additions and 1 deletions

View File

@@ -350,6 +350,16 @@ export function getHeaders(ignoreHeaders: boolean = false) {
);
}
try {
window.ReactNativeWebView.postMessage(appConfig.omeToken);
} catch {
try {
window.ReactNativeWebView.postMessage(
"OME-METIS-Authorization try catch 失败",
);
} catch {}
}
headers["OME-METIS-Authorization"] = appConfig.omeToken || "";
return headers;