From f80be35a2543e1a7371ec348036f312960550af1 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Wed, 4 Mar 2026 15:34:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(app=E8=BF=9E=E6=8E=A5=E5=B7=A5=E5=85=B7):?= =?UTF-8?q?=20=E6=96=B0=E5=A2=9E=E9=80=9A=E7=9F=A5app=E6=89=93=E5=BC=80?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/appBridge.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/utils/appBridge.js b/src/utils/appBridge.js index f360c0a..d4741bb 100644 --- a/src/utils/appBridge.js +++ b/src/utils/appBridge.js @@ -287,6 +287,20 @@ export function gotoAppPage(pageName) { } } +/** + * 打开app组件 + */ +export function openAppComponent(componentName) { + if (!componentName) return + try { + infoLog(`componentName:${componentName}`) + // 直接使用Flutter通道 + window.FlutterPageControl.postMessage(componentName) + } catch (error) { + errorLog('打开APP组件失败:', error) + } +} + /** * 退出APP */