提交 91b4906f 编写于 作者: D DCloud_LXH

chore: delete initEnterOptions

上级 2aa9cd32
...@@ -9,8 +9,6 @@ import { ...@@ -9,8 +9,6 @@ import {
import onWebInvokeAppService from 'uni-platform/service/on-web-invoke-app-service' import onWebInvokeAppService from 'uni-platform/service/on-web-invoke-app-service'
import { initEnterOptions, getEnterOptions } from '../plugins/app'
export default function initOn (on, { export default function initOn (on, {
getApp, getApp,
getCurrentPages getCurrentPages
...@@ -55,8 +53,7 @@ export default function initOn (on, { ...@@ -55,8 +53,7 @@ export default function initOn (on, {
} }
function onAppEnterForeground (enterOptions) { function onAppEnterForeground (enterOptions) {
initEnterOptions(enterOptions) callAppHook(getApp(), 'onShow', enterOptions)
callAppHook(getApp(), 'onShow', getEnterOptions())
const pages = getCurrentPages() const pages = getCurrentPages()
if (pages.length === 0) { if (pages.length === 0) {
return return
......
...@@ -35,18 +35,6 @@ export function getEnterOptions () { ...@@ -35,18 +35,6 @@ export function getEnterOptions () {
return enterOptions return enterOptions
} }
export function initEnterOptions ({
path,
query,
referrerInfo
}) {
extend(enterOptions, {
path,
query: query || {},
referrerInfo: referrerInfo || {}
})
}
export function initLaunchOptions ({ export function initLaunchOptions ({
path, path,
query, query,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册