feat(app连接工具): 新增通知app打开组件的方法
This commit is contained in:
parent
6cd5d7f353
commit
f80be35a25
@ -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
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user