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========================================>',