From 50f50546532f40e1253fd22810c5d79ca5e23051 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Thu, 7 Jul 2022 19:01:48 +0800 Subject: [PATCH] chore: delete initEnterOptions --- src/core/service/bridge/on.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/service/bridge/on.js b/src/core/service/bridge/on.js index 9aef79595..7a13d615b 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 -- GitLab