sunchengjie 9 hónapja
szülő
commit
e899ecb1b4
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/main.js

+ 2 - 2
src/main.js

@@ -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 {