mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-08 10:26:43 +08:00
修改跳转详情
This commit is contained in:
@@ -1505,18 +1505,23 @@ export default {
|
||||
//二期调整,直接改成一个地址
|
||||
//return this.webBaseUrl + '/course/detail?id=' + item.id;
|
||||
let $this = this;
|
||||
if (item.id) {
|
||||
id = item.id;
|
||||
} else {
|
||||
id = item.courseId;
|
||||
}
|
||||
if (item.type == 10) {
|
||||
//return this.webBaseUrl + "/course/studyindex?id=" + item.id;
|
||||
//console.log("直接进入学习页面");
|
||||
this.$router.push("/course/studyindex?id=" + item.id?item.id:item.courseId);
|
||||
this.$router.push("/course/studyindex?id=" + item.id);
|
||||
} else if (item.type == 20) {
|
||||
apiCourseStudy.hasSignup(item.id?item.id:item.courseId).then((rs) => {
|
||||
apiCourseStudy.hasSignup(item.id).then((rs) => {
|
||||
if (rs.status == 200) {
|
||||
//return $this.webBaseUrl + "/course/studyindex?id=" + item.id;
|
||||
this.$router.push("/course/studyindex?id=" + item.id?item.id:item.courseId);
|
||||
this.$router.push("/course/studyindex?id=" + item.id);
|
||||
} else {
|
||||
//return $this.webBaseUrl + "/course/detail?id=" + item.id;
|
||||
this.$router.push("/course/detail?id=" + item.id?item.id:item.courseId);
|
||||
this.$router.push("/course/detail?id=" + item.id);
|
||||
}
|
||||
});
|
||||
//return $this.webBaseUrl + "/course/detail?id=" + item.id;
|
||||
|
||||
Reference in New Issue
Block a user