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:
@@ -549,21 +549,21 @@ export default {
|
||||
if (item.source == 1) {
|
||||
//return `${this.webBaseUrl}/course/boeframe?id=${item.id}&type=${item.type}`;
|
||||
//location.href=`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=${item.type}`;
|
||||
this.$router.push('/course/boeframe?id='+item.id+'&type='+item.type);
|
||||
this.$router.push('/course/boeframe?id='+courseId+'&type='+item.type);
|
||||
//此处使用window.open有问题
|
||||
//window.open(`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=${item.type}`);
|
||||
} else {
|
||||
if (item.type == 10) {
|
||||
//return this.webBaseUrl + "/course/studyindex?id=" + item.id;
|
||||
this.$router.push("/course/studyindex?id=" + item.id);
|
||||
this.$router.push("/course/studyindex?id=" + courseId);
|
||||
} else if (item.type == 20) {
|
||||
apiCourseStudy.hasSignup(item.id).then(rs=>{
|
||||
apiCourseStudy.hasSignup(courseId).then(rs=>{
|
||||
if(rs.status==200){
|
||||
//return $this.webBaseUrl + "/course/studyindex?id=" + item.id;
|
||||
this.$router.push("/course/studyindex?id=" + item.id);
|
||||
this.$router.push("/course/studyindex?id=" + courseId);
|
||||
}else{
|
||||
//return $this.webBaseUrl + "/course/detail?id=" + item.id;
|
||||
this.$router.push("/course/detail?id=" + item.id);
|
||||
this.$router.push("/course/detail?id=" + courseId);
|
||||
}
|
||||
})
|
||||
//return $this.webBaseUrl + "/course/detail?id=" + item.id;
|
||||
|
||||
Reference in New Issue
Block a user