feat:增加教师入口跳转链接

This commit is contained in:
wyx
2023-03-07 16:07:10 +08:00
parent bec0b6e817
commit 63eafe934b
5 changed files with 12 additions and 2 deletions

1
.env
View File

@@ -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=

View File

@@ -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=

View File

@@ -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=

View File

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

View File

@@ -46,7 +46,7 @@
</template>
<script setup>
import {computed, reactive} from "vue";
import {studentUrl} from "@/api/method";
import {studentUrl,teacherUrl} from "@/api/method";
import router from "@/router";
import {useStore, createStore} from "vuex";
@@ -67,6 +67,11 @@ const state = reactive({
name: "学员",
go: studentUrl,
},
{
id:3,
name: "教师",
go: teacherUrl,
}
],
visible: false,
});
@@ -124,7 +129,7 @@ const logOut = () => {
.roleItems {
width: 109px;
height: 90px;
height: 120px;
padding-top: 10px;
background: #ffffff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);