This commit is contained in:
Aiden 2024-10-22 15:02:54 +08:00
parent 7bbab6d9b3
commit ce9e511e8d

View File

@ -19,7 +19,8 @@ export const closeWebview = () => {
// 判断是oa还是墨册 // 判断是oa还是墨册
export const OAorMc = () => { export const OAorMc = () => {
try { try {
return plus.webview.currentWebview().type; const currentWebView = plus.webview.getWebviewById("wv");
return currentWebView.type;
} catch (e) { } catch (e) {
return ""; return "";
} }