From 4eb54738ea2c0933973c77843c3fdd2760c6252e Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Fri, 12 Aug 2022 10:03:34 +0800
Subject: [PATCH] 公司名称

---
 src/router/index.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index a70173f..0a5d1f7 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -2,7 +2,7 @@
  * @Author: 小明丶
  * @Date: 2019-08-19 15:23:17
  * @LastEditors: zxq
- * @LastEditTime: 2022-08-02 17:27:35
+ * @LastEditTime: 2022-08-09 15:12:13
  * @Description:
  */
 import Vue from "vue";
@@ -25,14 +25,14 @@
 // 全局前置守卫:页面跳转前拦截
 router.beforeEach((to, from, next) => {
     if(to.meta.isLogin){
+  
         next()
     }else{
         // 需要登录的页面
         if(Store.state.sessionId){
             next()
         }else{
-            
-            next('/login')
+            next('/')
         }
     }
 })

--
Gitblit v1.8.0