diff --git a/src/core/service/bridge/on.js b/src/core/service/bridge/on.js index 9aef79595e68a1ddfd4df6efa6c31c3a2607a3b3..7a13d615b707a2ae7265cf80aa7049e7d8a230d4 100644 --- a/src/core/service/bridge/on.js +++ b/src/core/service/bridge/on.js @@ -9,8 +9,6 @@ import { import onWebInvokeAppService from 'uni-platform/service/on-web-invoke-app-service' -import { initEnterOptions, getEnterOptions } from '../plugins/app' - export default function initOn (on, { getApp, getCurrentPages @@ -55,8 +53,7 @@ export default function initOn (on, { } function onAppEnterForeground (enterOptions) { - initEnterOptions(enterOptions) - callAppHook(getApp(), 'onShow', getEnterOptions()) + callAppHook(getApp(), 'onShow', enterOptions) const pages = getCurrentPages() if (pages.length === 0) { return