sunchengjie 9 місяців тому
батько
коміт
dde1c3b12f
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      src/main.js

+ 2 - 2
src/main.js

@@ -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()
 			}