diff --git a/.env b/.env index 1cc53141..36b945cf 100644 --- a/.env +++ b/.env @@ -4,5 +4,5 @@ VITE_PROXY_URL=http://111.231.196.214:30001/ VITE_LOGIN_URL=https://u-pre.boe.com/web -VITE_IFRAME_URL=https://u.boe.com/pc-release/iframe -VITE_IFRAME_STUDENT_URL=https://u.boe.com/pc-release/loading +VITE_IFRAME_URL=https://u-pre.boe.com/pc-release/iframe +VITE_IFRAME_STUDENT_URL=https://u-pre.boe.com/pc-release/loading diff --git a/.env.boe b/.env.boe index ef2ad7d6..bb43a342 100644 --- a/.env.boe +++ b/.env.boe @@ -2,8 +2,3 @@ VITE_BASE=/manage VITE_BASE_API=/manageApi -VITE_BOE_ONLINE_CLASS_URL=https://u-pre.boe.com/pc/course/studyindex?id= -VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id= -VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId= - -VITE_BOE_API_URL=https://u-pre.boe.com \ No newline at end of file diff --git a/.env.prod b/.env.prod index 6671831e..9408d62f 100644 --- a/.env.prod +++ b/.env.prod @@ -1,8 +1,3 @@ VITE_BASE=/fe-student-release VITE_BASE_API=/manageApi-release -VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id= -VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc-release/case/detail?id= -VITE_BOE_TEST_DETAIL_URL=https://u.boe.com/web/quizsummary?detailId= - -VITE_BOE_API_URL=https://u.boe.com \ No newline at end of file diff --git a/.env.release b/.env.release index 05c6e5c4..232a2d91 100644 --- a/.env.release +++ b/.env.release @@ -3,8 +3,5 @@ VITE_BASE_API=/manageApi-release VITE_LOGIN_URL=https://u.boe.com/web -VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id= -VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc-release/case/detail?id= -VITE_BOE_TEST_DETAIL_URL=https://u.boe.com/web/quizsummary?detailId= - -VITE_BOE_API_URL=https://u.boe.com \ No newline at end of file +VITE_IFRAME_URL=https://u-pre.boe.com/pc-release/iframe +VITE_IFRAME_STUDENT_URL=https://u-pre.boe.com/pc-release/loading \ No newline at end of file diff --git a/.env.test b/.env.test index 6f9f2122..f0cece9d 100644 --- a/.env.test +++ b/.env.test @@ -2,8 +2,3 @@ VITE_BASE=/fe-student VITE_BASE_API=/manageApi -VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id= -VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id= -VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId= - -VITE_BOE_API_URL=https://u-pre.boe.com \ No newline at end of file diff --git a/src/api/method.js b/src/api/method.js index 401b7d1d..f0731ba7 100644 --- a/src/api/method.js +++ b/src/api/method.js @@ -276,9 +276,9 @@ const commonData = { const organizationalTree = [] //嵌套页面 -const iframeUrl = "https://u-pre.boe.com/pc/iframe" +const iframeUrl = process.env.VITE_IFRAME_URL //学员端路由 -const studentUrl = 'https://u-pre.boe.com/pc/loading' +const studentUrl = process.env.VITE_IFRAME_STUDENT_URL //二维码 const codeUrl = "https://u-pre.boe.com"