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

chore: delete initEnterOptions

上级 2aa9cd32
......@@ -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
......
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册