|
@@ -45,9 +45,20 @@ export struct XWebview {
|
|
}
|
|
}
|
|
|
|
|
|
aboutToAppear(): void {
|
|
aboutToAppear(): void {
|
|
- XWebManager.onClose(()=>{
|
|
|
|
|
|
+ XWebManager.onClose(() => {
|
|
router.back()
|
|
router.back()
|
|
})
|
|
})
|
|
|
|
+ if (this.xController) {
|
|
|
|
+ this.xController.getUrl = () => {
|
|
|
|
+ return this.controller.getUrl()
|
|
|
|
+ }
|
|
|
|
+ this.xController.getTitle = () => {
|
|
|
|
+ return this.controller.getTitle()
|
|
|
|
+ }
|
|
|
|
+ this.xController.refresh = () => {
|
|
|
|
+ this.controller.refresh()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
SZYXLocalStorageHelper.storage.setOrCreate('refresh_web_base', -1)
|
|
SZYXLocalStorageHelper.storage.setOrCreate('refresh_web_base', -1)
|
|
SZYXLocalStorageHelper.storage.setOrCreate(SZYXLocalStorageKeys.XWebViewCLose, undefined)
|
|
SZYXLocalStorageHelper.storage.setOrCreate(SZYXLocalStorageKeys.XWebViewCLose, undefined)
|
|
@@ -141,7 +152,7 @@ export struct XWebview {
|
|
}.width(65)
|
|
}.width(65)
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
if (this.clickMenu) {
|
|
if (this.clickMenu) {
|
|
- this.clickMenu.onClick()
|
|
|
|
|
|
+ this.clickMenu?.onClick && this.clickMenu?.onClick()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (this.dialogController != null) {
|
|
if (this.dialogController != null) {
|