mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
修改消息跳转
This commit is contained in:
@@ -325,22 +325,30 @@ export default {
|
|||||||
if(item.pageUrl && item.pageUrl.length>10){
|
if(item.pageUrl && item.pageUrl.length>10){
|
||||||
location.href = item.pageUrl;
|
location.href = item.pageUrl;
|
||||||
}else{
|
}else{
|
||||||
if (item.refType == 2) {
|
if(item.pageType && item.pageParams){
|
||||||
// return this.webBaseUrl + '/article/detail?id=' + item.refId;
|
if(item.pageType==1){
|
||||||
this.$router.push('/article/detail?id='+ item.refId);
|
this.$router.push('/course/studyindex?id='+ item.pageParams);
|
||||||
} else if (item.refType == 4||item.refType == 5) {
|
}else if(item.pageType==2){
|
||||||
// return this.webBaseUrl + '/qa/answer?id=' + item.refId;
|
this.$router.push('/article/detail?id='+ item.pageParams);
|
||||||
this.$router.push('/qa/answer?id='+ item.refId);
|
}else if(item.pageType==3){
|
||||||
} else {
|
this.$router.push('/case/detail?id='+ item.pageParams);
|
||||||
// if (item.conType == 10) {
|
}else if(item.pageType==4){
|
||||||
// return this.webBaseUrl + '/course/micro?id=' + item.refId;
|
this.$router.push('/qa/answer?id='+ item.pageParams);
|
||||||
// } else if (item.conType == 20) {
|
}
|
||||||
// return this.webBaseUrl + '/course/detail?id=' + item.refId;
|
}else{
|
||||||
this.$router.push('/course/detail?id='+ item.refId);
|
if (item.refType == 2) {
|
||||||
// }
|
this.$router.push('/article/detail?id='+ item.refId);
|
||||||
|
}else if(item.refType==3){
|
||||||
|
this.$router.push('/case/detail?id='+ item.refId);
|
||||||
|
}else if (item.refType == 4||item.refType == 5) {
|
||||||
|
this.$router.push('/qa/answer?id='+ item.refId);
|
||||||
|
} else if (item.refType == 1){
|
||||||
|
this.$router.push('/course/studyindex?id='+ item.refId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user