mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
feat:增加教师入口跳转链接
This commit is contained in:
1
.env
1
.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=
|
||||
|
||||
@@ -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=
|
||||
|
||||
|
||||
@@ -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=
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user