西铁院项目调整
This commit is contained in:
parent
54b078792c
commit
25c4cf957d
@ -45,7 +45,7 @@ function getRouteInfo(to) {
|
|||||||
clientId = LoginParams.Design.clientId;
|
clientId = LoginParams.Design.clientId;
|
||||||
} else if (/^\/plan/.test(toRoutePath)) {
|
} else if (/^\/plan/.test(toRoutePath)) {
|
||||||
const flag = getSessionStorage('design');
|
const flag = getSessionStorage('design');
|
||||||
if (flag) {
|
if (flag == true) {
|
||||||
loginPath = loginDesignPage;
|
loginPath = loginDesignPage;
|
||||||
getTokenInfo = getDesignToken;
|
getTokenInfo = getDesignToken;
|
||||||
clientId = LoginParams.Design.clientId;
|
clientId = LoginParams.Design.clientId;
|
||||||
@ -118,7 +118,6 @@ router.beforeEach((to, from, next) => {
|
|||||||
// 在免登录白名单,直接进入
|
// 在免登录白名单,直接进入
|
||||||
next();
|
next();
|
||||||
} else {
|
} else {
|
||||||
console.log(routeInfo, '=========');
|
|
||||||
// 否则全部重定向到登录页
|
// 否则全部重定向到登录页
|
||||||
next(routeInfo.loginPath);
|
next(routeInfo.loginPath);
|
||||||
}
|
}
|
||||||
|
@ -67,13 +67,11 @@ export function handleToken() {
|
|||||||
const path = window.location.href;
|
const path = window.location.href;
|
||||||
if (path.includes('/dp/') || path.includes('/display/dp')) {
|
if (path.includes('/dp/') || path.includes('/display/dp')) {
|
||||||
return getScreenToken();
|
return getScreenToken();
|
||||||
} else if (path.includes('/design') || path.includes('/scriptDisplay') || path.includes('/plan') || path.includes('/publish') || path.includes('/orderauthor') || path.includes('/system') || path.includes('/display/plan') || path.includes('/display/manage') || path.includes('/apply/')) {
|
} else if (path.includes('/design') || path.includes('/scriptDisplay') || path.includes('/publish') || path.includes('/orderauthor') || path.includes('/system') || path.includes('/display/plan') || path.includes('/display/manage') || path.includes('/apply/')) {
|
||||||
return getDesignToken();
|
return getDesignToken();
|
||||||
}
|
} else if (path.includes('/plan')) {
|
||||||
// else if (path.includes('/plan') || path.includes('/display/plan')) {
|
return getDesignToken() || getToken();
|
||||||
// return getPlanToken();
|
} else {
|
||||||
// }
|
|
||||||
else {
|
|
||||||
return getToken();
|
return getToken();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -83,11 +81,7 @@ export function handleRemoveToken() {
|
|||||||
const path = window.location.href;
|
const path = window.location.href;
|
||||||
if (path.includes('/dp/') || path.includes('/display/dp')) {
|
if (path.includes('/dp/') || path.includes('/display/dp')) {
|
||||||
return removeScreenToken();
|
return removeScreenToken();
|
||||||
}
|
} else if (path.includes('/design') || path.includes('/scriptDisplay') || path.includes('/plan') || path.includes('/publish') || path.includes('/orderauthor') || path.includes('/system') || path.includes('/display/plan') || path.includes('/display/manage') || path.includes('/apply/')) {
|
||||||
// else if (path.includes('/plan') || path.includes('/display/plan')) {
|
|
||||||
// return removePlanToken();
|
|
||||||
// }
|
|
||||||
else if (path.includes('/design') || path.includes('/scriptDisplay') || path.includes('/plan') || path.includes('/publish') || path.includes('/orderauthor') || path.includes('/system') || path.includes('/display/plan') || path.includes('/display/manage') || path.includes('/apply/')) {
|
|
||||||
return removeDesignToken();
|
return removeDesignToken();
|
||||||
} else {
|
} else {
|
||||||
return removeToken();
|
return removeToken();
|
||||||
|
@ -115,7 +115,7 @@
|
|||||||
} else if ( obj.type === '考试系统' ){
|
} else if ( obj.type === '考试系统' ){
|
||||||
this.$router.push({ path: `${UrlConfig.trainingPlatform.course}/${this.mapId}`, query: { prodId: obj.code, type: obj.type }});
|
this.$router.push({ path: `${UrlConfig.trainingPlatform.course}/${this.mapId}`, query: { prodId: obj.code, type: obj.type }});
|
||||||
} else if ( obj.type === '运行图编制'){
|
} else if ( obj.type === '运行图编制'){
|
||||||
this.$router.push({ path: `${UrlConfig.trainingPlatform.runPlan}/${this.mapId}` })
|
this.$router.push({ path: `${UrlConfig.trainingPlatform.runPlan}/${this.mapId}`,query:{skinCode: '02'} })
|
||||||
}
|
}
|
||||||
localStore.set('trainingPlatformRoute'+this.account,this.$router.history.current.fullPath);
|
localStore.set('trainingPlatformRoute'+this.account,this.$router.history.current.fullPath);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user