fix(main): rm location redirect
This commit is contained in:
parent
a4b5d8b52f
commit
22abef940b
6
main.js
6
main.js
|
@ -80,9 +80,9 @@ app.$router.afterEach((to, from) => {
|
|||
}
|
||||
const u = navigator.userAgent.toLowerCase()
|
||||
if (u.indexOf("like mac os x") < 0 || u.match(/MicroMessenger/i) != 'micromessenger') return
|
||||
if (to.path !== global.location.pathname) {
|
||||
location.assign(config.h5_addr + to.fullPath);
|
||||
}
|
||||
// if (to.path !== global.location.pathname) {
|
||||
// location.assign(config.h5_addr + to.fullPath);
|
||||
// }
|
||||
})
|
||||
//#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue