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

fix(h5): onBackPress

上级 c07be2be
......@@ -27,7 +27,7 @@ function onAppRoute (type, {
const pages = getCurrentPages()
if (pages.length) {
const page = pages[pages.length - 1]
if (hasLifecycleHook(page.$options.onBackPress) && page.__call_hook('onBackPress', {
if (hasLifecycleHook(page.$options, 'onBackPress') && page.__call_hook('onBackPress', {
from
}) === true) {
canBack = false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册