|
@@ -56,13 +56,13 @@ router.beforeEach((to, from, next) => {
|
|
|
|
|
|
if(to.path == '/' && from.path == '/') {
|
|
|
if(localStorage.getItem("isReload") === 'isReloadVlaue'){
|
|
|
- next()
|
|
|
console.log('有isReloadVlaue')
|
|
|
+ next()
|
|
|
}else{
|
|
|
localStorage.setItem("isReload",'isReloadVlaue')
|
|
|
+ console.log('无isReloadVlaue')
|
|
|
next()
|
|
|
window.location.reload()
|
|
|
- console.log('无isReloadVlaue')
|
|
|
}
|
|
|
}else {
|
|
|
next()
|
|
@@ -73,13 +73,13 @@ router.beforeEach((to, from, next) => {
|
|
|
console.log('什么都有')
|
|
|
if(to.path == '/' && from.path == '/') {
|
|
|
if(localStorage.getItem("isReload") === 'isReloadVlaue'){
|
|
|
- next()
|
|
|
console.log('有isReloadVlaue')
|
|
|
+ next()
|
|
|
}else{
|
|
|
localStorage.setItem("isReload",'isReloadVlaue')
|
|
|
+ console.log('无isReloadVlaue')
|
|
|
next()
|
|
|
window.location.reload()
|
|
|
- console.log('无isReloadVlaue')
|
|
|
}
|
|
|
}else {
|
|
|
next()
|