提交 3885e489 编写于 作者: fxy060608's avatar fxy060608

Merge branch 'dev' of https://github.com/dcloudio/uni-app into dev

......@@ -151,6 +151,12 @@ function initAppLaunch (appVm) {
callAppHook(appVm, 'onLaunch', args)
callAppHook(appVm, 'onShow', args)
// https://tower.im/teams/226535/todos/16905/
const getAppState = weex.requireModule('plus').getAppState
const appState = getAppState && Number(getAppState())
if (appState === 2) {
callAppHook(appVm, 'onHide', args)
}
}
function initTabBar () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册