Explorar o código

更改路由首位登录页得跳转

ming %!s(int64=3) %!d(string=hai) anos
pai
achega
f68013ce4c
Modificáronse 3 ficheiros con 2 adicións e 2 borrados
  1. BIN=BIN
      dist.zip
  2. BIN=BIN
      dist3.zip
  3. 2 2
      src/main.js

BIN=BIN
dist.zip


BIN=BIN
dist3.zip


+ 2 - 2
src/main.js

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