修改好热度榜连接问题

This commit is contained in:
daihh
2022-11-04 08:43:54 +08:00
parent 05abd674bb
commit cf27b10a8c

View File

@@ -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;