eventsPage
This commit is contained in:
@@ -90,7 +90,17 @@ axios.interceptors.response.use((res) =>{
|
||||
if(error?.response?.status === 401 && router.currentRoute._value.name != 'setIdentification'){//如果是记录浏览器页面就不跳转login
|
||||
if(!isLoginTime){
|
||||
isLoginTime = true
|
||||
router.replace('/')
|
||||
let isSystemUserRouteList = ['/Square']//如果是这两个页面就无需跳转未登录页
|
||||
let sSystemUser = false
|
||||
for (let index = 0; index < isSystemUserRouteList.length; index++) {
|
||||
if(router.currentRoute.value.path.indexOf(isSystemUserRouteList[index]) > -1){
|
||||
sSystemUser = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if(!sSystemUser){
|
||||
router.replace('/')
|
||||
}
|
||||
message.warning('Please login and try again~')
|
||||
clonAllCookie()
|
||||
store.commit('clearSystemUser')
|
||||
@@ -262,6 +272,8 @@ export const Https = {
|
||||
exportSave:`/api/history/exportSave`,//保存画布
|
||||
exportSearch:`/api/history/exportSearch`,//保存画布
|
||||
|
||||
//活动
|
||||
activity:`/api/account/activity`,
|
||||
|
||||
|
||||
//调查问卷
|
||||
|
||||
Reference in New Issue
Block a user