From 63eafe934bb528f95620bf177a61296a78d3a63e Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 7 Mar 2023 16:07:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E6=95=99=E5=B8=88?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E8=B7=B3=E8=BD=AC=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + .env.prod | 1 + .env.release | 1 + src/api/method.js | 2 ++ src/components/NavTop.vue | 9 +++++++-- 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 37fbf395..df7550eb 100644 --- a/.env +++ b/.env @@ -17,6 +17,7 @@ VUE_APP_OUTPUT_DIR=./dist VUE_APP_IFRAME_URL=//u-pre.boe.com/pc/iframe # 学员端路由 VUE_APP_IFRAME_STUDENT_URL=//u-pre.boe.com/pc/loading +VUE_APP_IFRAME_TEACHER_URL=//u-pre.boe.com/pc/need/waitaudit # 课程二维码 VUE_APP_COURSE_STUDY=//u-pre.boe.com/pc/course/studyindex?id= diff --git a/.env.prod b/.env.prod index 863de9ff..40aef55d 100644 --- a/.env.prod +++ b/.env.prod @@ -10,6 +10,7 @@ VUE_APP_BOE_API_URL=//u.boe.com VUE_APP_IFRAME_URL=//u.boe.com/pc/iframe VUE_APP_IFRAME_STUDENT_URL=//u.boe.com/pc/loading +VUE_APP_IFRAME_TEACHER_URL=//u-pre.boe.com/pc/need/waitaudit VUE_APP_COURSE_STUDY=//u.boe.com/pc/course/studyindex?id= diff --git a/.env.release b/.env.release index 0efa2573..d54ac429 100644 --- a/.env.release +++ b/.env.release @@ -10,6 +10,7 @@ VUE_APP_BOE_API_URL=//u.boe.com VUE_APP_IFRAME_URL=//u.boe.com/pc-release/iframe VUE_APP_IFRAME_STUDENT_URL=//u.boe.com/pc-release/loading +VUE_APP_IFRAME_TEACHER_URL=//u-pre.boe.com/pc-release/need/waitaudit VUE_APP_COURSE_STUDY=//u.boe.com/pc-release/course/studyindex?id= diff --git a/src/api/method.js b/src/api/method.js index f5826d2f..fa365a79 100644 --- a/src/api/method.js +++ b/src/api/method.js @@ -280,6 +280,7 @@ const organizationalTree = [] const iframeUrl = window.location.protocol + process.env.VUE_APP_IFRAME_URL //学员端路由 const studentUrl = window.location.protocol + process.env.VUE_APP_IFRAME_STUDENT_URL +const teacherUrl = window.location.protocol + process.env.VUE_APP_IFRAME_TEACHER_URL //二维码 const codeUrl = window.location.protocol + "//u-pre.boe.com" @@ -297,5 +298,6 @@ export { organizationalTree, iframeUrl, studentUrl, + teacherUrl, codeUrl, } \ No newline at end of file diff --git a/src/components/NavTop.vue b/src/components/NavTop.vue index 6c05f4c3..ddca470e 100644 --- a/src/components/NavTop.vue +++ b/src/components/NavTop.vue @@ -46,7 +46,7 @@