Kaynağa Gözat

修复第一次跳转白屏

pixel 5 yıl önce
ebeveyn
işleme
072608215b
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      QMPlusVuePage/src/permission.js

+ 1 - 1
QMPlusVuePage/src/permission.js

@@ -18,7 +18,7 @@ router.beforeEach(async(to, from, next) => {
         // 在白名单中的判断情况
     if (whiteList.indexOf(to.name) > -1) {
         if (token) {
-            next({ name: 'dashbord' })
+            next({ path: '/layout/dashbord' })
         } else {
             next()
         }