|
@@ -55,8 +55,8 @@ router.beforeEach((to, from, next) => {
|
|
|
getWxOpenId().then(() => {
|
|
|
if(to.path == '/') {
|
|
|
console.log('window.location.reload()')
|
|
|
- next()
|
|
|
window.location.reload()
|
|
|
+ next()
|
|
|
}else {
|
|
|
next()
|
|
|
}
|
|
@@ -66,8 +66,8 @@ router.beforeEach((to, from, next) => {
|
|
|
console.log('什么都有')
|
|
|
if(to.path == '/') {
|
|
|
console.log('window.location.reload()')
|
|
|
- next()
|
|
|
window.location.reload()
|
|
|
+ next()
|
|
|
}else {
|
|
|
next()
|
|
|
}
|