From cf27b10a8cf7c346d71b4a08313c3d9d45c7b2b5 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 4 Nov 2022 08:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A5=BD=E7=83=AD=E5=BA=A6?= =?UTF-8?q?=E6=A6=9C=E8=BF=9E=E6=8E=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 4fdc2439..cd189102 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -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;