refactor(app): 重构首页跳转逻辑并优化网页视图- 重构了 HomeView 中的轮播图点击事件处理逻辑,增加了热门新闻跳转功能
- 优化了 XWebview 中的页面关闭流程,确保移除所有消息监听器 - 移除了未使用的 XWebHelper 导入
这个提交包含在:
父节点
47b8b26564
当前提交
15e26ff27a
@ -61,6 +61,7 @@ export struct XWebview {
|
||||
if (this.closeTag !== undefined) {
|
||||
SZYXLocalStorageHelper.storage.setOrCreate(SZYXLocalStorageKeys.XWebViewCLose, this.closeTag)
|
||||
}
|
||||
XWebManager.removeOnMessageToWeb(this._uuidToHtml)
|
||||
XWebManager.removeOnMessage(this._uuid)
|
||||
XWebManager.removeOnMessageToHtml(this._uuidToHtml)
|
||||
if (this._uuidToHtml) {
|
||||
@ -71,7 +72,6 @@ export struct XWebview {
|
||||
} catch (error) {
|
||||
console.error(`ErrorCode: ${(error as BusinessError).code}, Message: ${(error as BusinessError).message}`);
|
||||
}
|
||||
// this.controller.rele
|
||||
}
|
||||
|
||||
onBackPress(): boolean | void {
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户