|
@@ -25,6 +25,7 @@ import {
|
|
|
import MusicScore from './component/musicScore'
|
|
|
import iconDian from './image/icon-dian.svg'
|
|
|
import iconPoint from './image/icon-point.svg'
|
|
|
+import { state as baseState } from '@/state'
|
|
|
import {
|
|
|
iconUp,
|
|
|
iconDown,
|
|
@@ -48,6 +49,9 @@ import VideoPlay from './component/video-play'
|
|
|
export default defineComponent({
|
|
|
name: 'CoursewarePlay',
|
|
|
setup() {
|
|
|
+ const apiSuffix = ref(
|
|
|
+ baseState.platformType === 'STUDENT' ? '/api-student' : '/api-teacher'
|
|
|
+ )
|
|
|
const pageVisibility = usePageVisibility()
|
|
|
/** 页面显示和隐藏 */
|
|
|
watch(
|
|
@@ -273,7 +277,8 @@ export default defineComponent({
|
|
|
const getDetail = async () => {
|
|
|
try {
|
|
|
const res: any = await request.get(
|
|
|
- `/api-student/tenantAlbumMusic/getLessonCourseDetail/${route.query.id}`,
|
|
|
+ apiSuffix.value +
|
|
|
+ `/tenantAlbumMusic/getLessonCourseDetail/${route.query.id}`,
|
|
|
{
|
|
|
hideLoading: true
|
|
|
}
|