From afd7bc9b1512074c5e09927852ae91b6a609827c Mon Sep 17 00:00:00 2001 From: zhaoxiaoqiang <287285524@qq.com> Date: Thu, 10 Nov 2022 10:11:32 +0800 Subject: [PATCH] 合同显示 --- src/router/index.js | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 5db939f..7b3bc3a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,8 +1,8 @@ /* * @Author: 小明丶 * @Date: 2019-08-19 15:23:17 - * @LastEditors: Please set LastEditors - * @LastEditTime: 2021-10-28 17:34:08 + * @LastEditors: zxq + * @LastEditTime: 2022-11-10 10:01:08 * @Description: */ import Vue from "vue"; @@ -25,15 +25,12 @@ // 全局前置守卫:页面跳转前拦截 router.beforeEach((to, from, next) => { if(to.meta.isLogin){ - next() }else{ // 需要登录的页面 if(Store.state.sessionId){ - next() }else{ - next('/') } } -- Gitblit v1.8.0