From 91b4906f3ca9d90594d63d245f68fe3cac88d12d 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 +---- src/core/service/plugins/app/index.js | 12 ------------ 2 files changed, 1 insertion(+), 16 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 diff --git a/src/core/service/plugins/app/index.js b/src/core/service/plugins/app/index.js index 4585bd7c2..0ed7e6392 100644 --- a/src/core/service/plugins/app/index.js +++ b/src/core/service/plugins/app/index.js @@ -35,18 +35,6 @@ export function getEnterOptions () { return enterOptions } -export function initEnterOptions ({ - path, - query, - referrerInfo -}) { - extend(enterOptions, { - path, - query: query || {}, - referrerInfo: referrerInfo || {} - }) -} - export function initLaunchOptions ({ path, query, -- GitLab