Ver Fonte

main.js 修改next()

ming há 3 anos atrás
pai
commit
1827602914
3 ficheiros alterados com 2 adições e 1 exclusões
  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 === '/') {
     if (to.path === '/') {
-        next({ path: '/home' })
+        // next({ path: '/home' })
+        next()
 
 
         // removeToken()
         // removeToken()