feat(app连接工具): 新增通知app打开组件的方法

This commit is contained in:
hzj 2026-03-04 15:34:28 +08:00
parent 6cd5d7f353
commit f80be35a25

View File

@ -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
*/