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:
@@ -127,10 +127,10 @@ export default {
|
|||||||
//let urlPre=window.location.protocol+'//'+window.location.host;
|
//let urlPre=window.location.protocol+'//'+window.location.host;
|
||||||
let studentPath=process.env.VUE_APP_STUDENT_PATH;
|
let studentPath=process.env.VUE_APP_STUDENT_PATH;
|
||||||
if(item.cmtask_type==1){ //学习路径图
|
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¶ms='+params);
|
this.$router.push('/forward?to='+studentPath+'/pathdetails¶ms='+params);
|
||||||
}else if(item.cmtask_type==2){ //学习项目
|
}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¶ms='+params);
|
this.$router.push('/forward?to='+studentPath+'/projectdetails¶ms='+params);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user