提交任务对接修改

This commit is contained in:
daihh
2023-02-28 18:04:22 +08:00
parent 76b9f1d137
commit 34fb2e1111
2 changed files with 15 additions and 4 deletions

View File

@@ -123,13 +123,15 @@ export default {
jumpRouter(item) {
//window.open(`${this.webBaseUrl}/course/boeframe?id=${item.cmtask_id}`,'_self' )
location.href=`${this.webBaseUrl}/course/boeframe?id=${item.cmtask_id}`;
let urlPre=window.location.protocol+'//'+window.location.host;
//location.href=`${this.webBaseUrl}/course/boeframe?id=${item.cmtask_id}`;
if(item.cmtask_type==1){ //学习路径图
//let params=encodeURIComponent('projectId='+courseId);
//this.$router.push('/forward?to='+studentPath+'/projectdetails&params='+params);
location.href='https://u-pre.boe.com/student-h5/projectdetails?projectId='+item.id
location.href=urlPre+'/fe-student/pathdetails?routerId='+item.cmtask_code
}else if(item.cmtask_type==2){ //学习项目
location.href='https://u-pre.boe.com/student-h5/projectdetails?projectId='+item.id
location.href=urlPre+'/fe-student/projectdetails?projectId='+item.cmtask_code
}
},