From 6870ea7205f12e2ae6e7c085710c28a146baa294 Mon Sep 17 00:00:00 2001 From: liuyongli <1598631486@qq.com> Date: Mon, 25 Oct 2021 14:33:17 +0800 Subject: [PATCH] test --- src/permission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/permission.js b/src/permission.js index 9392fc4..9610584 100644 --- a/src/permission.js +++ b/src/permission.js @@ -11,10 +11,10 @@ import NProgress from "nprogress" import "nprogress/nprogress.css" const whitePath = ['/', '/login', '/industryDataExport','/index'] -const token = sessionStorage.getItem('token'); // console.log(token) router.beforeEach((to, from, next) => { NProgress.start() + const token = sessionStorage.getItem('token'); if(!token && !whitePath.includes(to.path)) { next('/login'); } else {