소스 검색

环境切换

徐勤民 8 달 전
부모
커밋
badb58ed8b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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
   }