From 7ab97c4ada45550abc7f440d60549b249726a9ff Mon Sep 17 00:00:00 2001
From: whychdw <49690745@qq.com>
Date: 星期五, 05 七月 2019 08:45:02 +0800
Subject: [PATCH] 修改路由bug

---
 src/main.js |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/main.js b/src/main.js
index abb2aa6..a47a402 100644
--- a/src/main.js
+++ b/src/main.js
@@ -21,13 +21,9 @@
 
 router.beforeEach((to, from, next) => {
     iView.LoadingBar.start();
-    if(store.state.login || to.path=='/') {     // 鍒ゆ柇鏄惁鐧诲綍
-        // console.log(to.meta);
-        Util.title(to.meta.title);
-        next();
-    }else{
-        next('/');
-    }
+    // console.log(to.meta);
+    Util.title(to.meta.title);
+    next();
     
 });
 

--
Gitblit v1.9.1