Update api.ts
This commit is contained in:
parent
d96220cb9d
commit
4577b835fd
|
@ -350,6 +350,14 @@ export function getHeaders(ignoreHeaders: boolean = false) {
|
|||
);
|
||||
}
|
||||
|
||||
try {
|
||||
window.ReactNativeWebView.postMessage(appConfig.omeToken);
|
||||
} catch {
|
||||
window.ReactNativeWebView.postMessage(
|
||||
"OME-METIS-Authorization try catch 失败",
|
||||
);
|
||||
}
|
||||
|
||||
headers["OME-METIS-Authorization"] = appConfig.omeToken || "";
|
||||
|
||||
return headers;
|
||||
|
|
Loading…
Reference in New Issue