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