소스 검색

main.js 修改next()

ming 3 년 전
부모
커밋
1827602914
3개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. BIN
      dist.zip
  2. BIN
      dist8 (2).zip
  3. 2 1
      src/main.js

BIN
dist.zip


BIN
dist8 (2).zip


+ 2 - 1
src/main.js

@@ -42,7 +42,8 @@ router.beforeEach((to, from, next) => {
 
     //如果目标路由为登陆时,恢复用户原始状态
     if (to.path === '/') {
-        next({ path: '/home' })
+        // next({ path: '/home' })
+        next()
 
         // removeToken()