徐勤民 hace 6 meses
padre
commit
badb58ed8b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/main/ets/pages/XWebview.ets

+ 2 - 0
src/main/ets/pages/XWebview.ets

@@ -30,6 +30,8 @@ export struct XWebview {
   onBackPress(): boolean | void {
     if (this.controller.accessBackward()) {
       this.controller.backward()
+    } else {
+      ToolsHelper.doubleAndExit()
     }
     return true
   }