diff --git a/.env b/.env index d398e4b1..c7f198b9 100644 --- a/.env +++ b/.env @@ -16,7 +16,7 @@ VUE_APP_OUTPUT_DIR=./dist # iframe嵌套url VUE_APP_IFRAME_URL=//u-pre.boe.com/pc/iframe # 学员端路由 -VUE_APP_IFRAME_STUDENT_URL=//u-pre.boe.com/pc/loadingVUE_APP_BOE_API_URLVUE_APP_BOE_API_URL +VUE_APP_IFRAME_STUDENT_URL=//u-pre.boe.com/pc/loading # 课程二维码 VUE_APP_COURSE_STUDY=//u-pre.boe.com/pc/course/studyindex?id= diff --git a/src/api/method.js b/src/api/method.js index 7e1add2b..f5826d2f 100644 --- a/src/api/method.js +++ b/src/api/method.js @@ -282,7 +282,7 @@ const iframeUrl = window.location.protocol + process.env.VUE_APP_IFRAME_URL const studentUrl = window.location.protocol + process.env.VUE_APP_IFRAME_STUDENT_URL //二维码 -const codeUrl = "https://u-pre.boe.com" +const codeUrl = window.location.protocol + "//u-pre.boe.com" export { throttle, toDate,