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