Authored by 陈峰

visible

... ... @@ -34,7 +34,7 @@ document.addEventListener('visibilitychange', function() {
store.commit(PAGE_INIT_VISIBLE, {visible: false});
setTimeout(() => {
store.commit(PAGE_INIT_VISIBLE, {visible: true});
}, 500);
}, 3000);
}
});
... ... @@ -49,6 +49,8 @@ router.onReady(() => {
.then(() => {
if (!yoho.isAndroid || store.state.yoho.visible) {
return next();
} else {
history.pushState({}, '', from.fullPath);
}
})
.catch(next);
... ...