From 34fb2e1111ecd96105515a3d318de85f7379faac Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 28 Feb 2023 18:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=BB=E5=8A=A1=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/TaskList.vue | 8 +++++--- vue.config.js | 11 ++++++++++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/views/study/TaskList.vue b/src/views/study/TaskList.vue index a0acd6ed..f7dfe48a 100644 --- a/src/views/study/TaskList.vue +++ b/src/views/study/TaskList.vue @@ -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¶ms='+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 } }, diff --git a/vue.config.js b/vue.config.js index de07e2ce..7523fae1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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: {