From b97219565e09012adfaf261eaa76ea92144f39b5 Mon Sep 17 00:00:00 2001 From: wangyifeng <812766448@qq.com> Date: Wed, 23 Apr 2025 13:39:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A3=80=E6=9F=A5=E8=81=8A?= =?UTF-8?q?=E5=A4=A9=E9=A1=B5=E9=9D=A2=E6=98=AF=E5=90=A6=E5=8F=AF=E9=80=9A?= =?UTF-8?q?=E4=BF=A1=E6=96=B9=E6=B3=95=EF=BC=8C=E7=94=A8=E4=BA=8E=E8=BE=85?= =?UTF-8?q?=E5=8A=A9=E6=A3=80=E6=B5=8B=E6=98=AF=E5=90=A6=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E7=99=BD=E5=B1=8F=E5=8F=8A=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.js b/src/main.js index c434bc6..650fc8b 100644 --- a/src/main.js +++ b/src/main.js @@ -99,6 +99,16 @@ export function createApp() { location.reload(true) } + //检查聊天页面是否可用 + window.checkChatWebviewAvailable = () => { + let OAWebView = plus.webview.all() + OAWebView.forEach((webview, index) => { + if (webview.id === 'webviewId1') { + webview.evalJS(`doneCheckChatWebviewAvailable()`) + } + }) + } + window.message = ['success', 'error', 'warning'].reduce((acc, type) => { acc[type] = (message) => { if (typeof message === 'string') {