提交任务对接修改

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
}
},

View File

@@ -117,6 +117,15 @@ module.exports = {
// 114.115.162.187 测试环境
// 192.168.0.107 晋宇
proxy: {
'/manageApi': {
// 目标代理服务器地址
target: 'https://u-pre.boe.com',
changeOrigin: true,
secure: false,
pathRewrite: {
'^/manageApi': '/manageApi'
}
},
'/systemapi': {
// 目标代理服务器地址
target: 'http://127.0.0.1:9090',
@@ -129,7 +138,7 @@ module.exports = {
},
'/uboeApi': {
// 目标代理服务器地址
target: 'https://u-pre.boe.com',
target: 'https://u-pre.boe.comww',
changeOrigin: true,
secure: false,
pathRewrite: {