From 2526592bcec6d5c31056c260fb96f60a9b3ae2fa Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Fri, 05 Aug 2022 09:58:34 +0800
Subject: [PATCH] node

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

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

--
Gitblit v1.8.0