fix:页面权限刷新判断显示问题修改

This commit is contained in:
wyx
2023-03-17 15:25:34 +08:00
parent f349acaa75
commit 1184560188
2 changed files with 8 additions and 0 deletions

View File

@@ -61,6 +61,8 @@ http.interceptors.response.use(
(process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'alpine') ?
router.push({path: 'login', query: { returnUrl: router.currentRoute.value.fullPath }}) :
(window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + process.env.VUE_APP_BOE_API_URL + process.env.VUE_APP_BASE + router.currentRoute.value.fullPath))
// TODO token过期后退出登录 清空当前用户标记 - 为了刷新页面使用
localStorage.removeItem('refreshPage')
return Promise.reject(response);
}
show && message.error(msg);