Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -18,6 +18,7 @@ import { JSON } from '@kit.ArkTS' | @@ -18,6 +18,7 @@ import { JSON } from '@kit.ArkTS' | ||
| 18 | import app from '@system.app' | 18 | import app from '@system.app' |
| 19 | import { GetuiPush, HWLocationUtils } from 'wdHwAbility/Index' | 19 | import { GetuiPush, HWLocationUtils } from 'wdHwAbility/Index' |
| 20 | import { ImageKnife, ImageKnifeGlobal } from '@ohos/imageknife' | 20 | import { ImageKnife, ImageKnifeGlobal } from '@ohos/imageknife' |
| 21 | +import { webview } from '@kit.ArkWeb' | ||
| 21 | 22 | ||
| 22 | const TAG = "[StartupManager]" | 23 | const TAG = "[StartupManager]" |
| 23 | 24 | ||
| @@ -120,7 +121,8 @@ export class StartupManager { | @@ -120,7 +121,8 @@ export class StartupManager { | ||
| 120 | GetuiPush.sharedInstance().onReachMainPage() | 121 | GetuiPush.sharedInstance().onReachMainPage() |
| 121 | 122 | ||
| 122 | //TODO: | 123 | //TODO: |
| 123 | - | 124 | + // 提前初始化webview |
| 125 | + webview.WebviewController.initializeWebEngine() | ||
| 124 | resolve() | 126 | resolve() |
| 125 | }) | 127 | }) |
| 126 | } | 128 | } |
-
Please register or login to post a comment