From 9fd5dafacc57ace85ff558865f7f9054d3d5b343 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Tue, 30 Aug 2022 09:40:50 +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