Commit c5e1f483 authored by 李晓兵's avatar 李晓兵

''

parent ba7a07fe
......@@ -153,21 +153,12 @@ vum.$vumPlatform.ready(function () {
}
})
/*if (window.history && window.history.pushState) {
// 往历史记录里面添加一条新的当前页面的url
history.pushState(null, null, document.URL)
// 给 popstate 绑定一个方法 监听页面刷新
window.addEventListener('popstate', function(){
hlsPopup.showLongCenter('请点击左上角返回按钮返回')
}, false) // false阻止默认事件
}*/
vum.$vumPlatform.registerBackButtonAction(function (e) {
// let vm = this
let time
let path = router.currentRoute.path
if (path === '/tab/home' || path === '/tab/allCar' || path === '/tab/message' || path === '/tab/my-info') {
if (path === '/tab/home' || path === '/tab/message' || path === '/tab/my-info') {
// 进入主界面清除缓存
if (backButtonPressedOnceToExit === true) {
vum.Platform.exitApp()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment