提交 50f50546 编写于 作者: D DCloud_LXH 提交者: qiang

chore: delete initEnterOptions

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