From ce9e511e8db42e35c94ef516a58aecfd7cf4ef5b Mon Sep 17 00:00:00 2001 From: xuminyui <576362016@qq.com> Date: Tue, 22 Oct 2024 15:02:54 +0800 Subject: [PATCH] fix --- utils/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/index.js b/utils/index.js index fa56101..3acef5e 100644 --- a/utils/index.js +++ b/utils/index.js @@ -19,7 +19,8 @@ export const closeWebview = () => { // 判断是oa还是墨册 export const OAorMc = () => { try { - return plus.webview.currentWebview().type; + const currentWebView = plus.webview.getWebviewById("wv"); + return currentWebView.type; } catch (e) { return ""; }