跳转连接

This commit is contained in:
daihh
2023-03-03 17:47:45 +08:00
parent 12b19d4fbb
commit f4227cc6c0

View File

@@ -127,10 +127,10 @@ export default {
//let urlPre=window.location.protocol+'//'+window.location.host;
let studentPath=process.env.VUE_APP_STUDENT_PATH;
if(item.cmtask_type==1){ //学习路径图
let params=encodeURIComponent('projectId='+item.cmtask_id);
let params=encodeURIComponent('routerId='+item.cmtask_id);
this.$router.push('/forward?to='+studentPath+'/pathdetails&params='+params);
}else if(item.cmtask_type==2){ //学习项目
let params=encodeURIComponent('routerId='+item.cmtask_id);
let params=encodeURIComponent('projectId='+item.cmtask_id);
this.$router.push('/forward?to='+studentPath+'/projectdetails&params='+params);
}
},