| | |
| | | } from '@/api' |
| | | export default { |
| | | onLaunch: function() { |
| | | window.addEventListener("popstate", (event) => { |
| | | const path = this.$route.fullPath |
| | | // console.log('path', path); |
| | | if (path == '/pages/login/login' || path == '/') { |
| | | window.location.href = app_url |
| | | } |
| | | if (path == '/pages/wdata/home') { |
| | | window.location.href = 'https://atwl.ahzyssl.com/zhyq_h5/#/pages/wdata/home' |
| | | } |
| | | if (path == '/pages/waybill/home') { |
| | | window.location.href = 'https://atwl.ahzyssl.com/zhyq_h5/#/pages/waybill/home' |
| | | } |
| | | }) |
| | | uni.setStorageSync('transportList', []) |
| | | // window.addEventListener("popstate", (event) => { |
| | | // const path = this.$route.fullPath |
| | | // if (path == '/pages/login/login' || path == '/') { |
| | | // window.location.href = app_url |
| | | // } |
| | | // if (path == '/pages/wdata/home') { |
| | | // window.location.href = 'https://atwl.ahzyssl.com/zhyq_h5/#/pages/wdata/home' |
| | | // } |
| | | // if (path == '/pages/waybill/home') { |
| | | // window.location.href = 'https://atwl.ahzyssl.com/zhyq_h5/#/pages/waybill/home' |
| | | // } |
| | | // }) |
| | | // uni.setStorageSync('transportList', []) |
| | | console.log('onLaunch') |
| | | }, |
| | | onShow: function() { |