From 2c1070d4e2f697a278f99ea14b697633a2938ce6 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Mon, 17 Oct 2022 09:43:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BF=E5=AE=A2=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/vab/plugins/permissions.js | 6 +++--- front/src/views/login/index.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/front/src/vab/plugins/permissions.js b/front/src/vab/plugins/permissions.js index 4c197d7c..1bda7a3c 100644 --- a/front/src/vab/plugins/permissions.js +++ b/front/src/vab/plugins/permissions.js @@ -1,8 +1,8 @@ /* * @Author: hisense.wuhongjian * @Date: 2022-04-01 17:23:11 - * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-10-11 13:59:18 + * @LastEditors: Light + * @LastEditTime: 2022-10-17 09:25:32 * @Description: 告诉大家这是什么 */ /** @@ -26,7 +26,6 @@ router.beforeEach(async (to, from, next) => { // if (SSOTOKEN) { // setAccessToken(SSOTOKEN) // } - console.log('验证白名单', routesWhiteList) const token = getAccessToken() console.log('token', token) let hasToken = token @@ -44,6 +43,7 @@ router.beforeEach(async (to, from, next) => { accessRoutes.forEach((item) => { router.addRoute(item) }) + console.log('验证白名单', routesWhiteList) if (routesWhiteList.indexOf(to.path) !== -1) { debugger next() diff --git a/front/src/views/login/index.vue b/front/src/views/login/index.vue index c684ab11..7440960f 100644 --- a/front/src/views/login/index.vue +++ b/front/src/views/login/index.vue @@ -157,7 +157,7 @@ password: Encrypt(this.form.password), username: this.form.username, }) - window.localStorage.setItem('tokenStartTime', new Date().getTime()) + // window.localStorage.setItem('tokenStartTime', new Date().getTime()) window.sessionStorage.setItem('visits', JSON.stringify([])) console.log( '添加visits========================================>',