Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chenquansheng
2024-09-18 19:45:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78f31e87e0d16ac1eca93ba8ac1bf4a08b31019d
78f31e87
1 parent
e56a5c22
fix |> 判断controller与web组件是否绑定
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
View file @
78f31e8
...
...
@@ -232,12 +232,13 @@ export struct WdWebLocalComponent {
aboutToAppear(): void {
EmitterUtils.receiveEvent(EmitterEventId.APP_PAGE_SHOW, () => {
Logger.info(TAG, 'APP_PAGE_SHOW');
let params = {'event':NativeCallH5Event.NativeCallH5EventPageWillAppear} as eventParams;
let jsonString = JSON.stringify(params);
this.webviewControl.callHandle(NativeCallH5Type.jsCall_appNotifyEvent, jsonString, (data: string) => {
Logger.debug(TAG, "from js data = " + data);
})
if (this.isPageEnd) {
this.webviewControl.callHandle(NativeCallH5Type.jsCall_appNotifyEvent, jsonString, (data: string) => {
Logger.debug(TAG, "from js data = " + data);
})
}
})
}
...
...
Please
register
or
login
to post a comment