lex-xin 7 달 전
부모
커밋
741a14a588
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 1
      src/views/cloudPractice/cloudPractice.tsx
  2. 1 1
      src/views/cloudPractice/useData.ts

+ 6 - 1
src/views/cloudPractice/cloudPractice.tsx

@@ -799,7 +799,12 @@ export default defineComponent({
       }
 
       const musicIframeLoad = async () => {
-         if (userStoreHook.roles === "GYM") return
+         if (userStoreHook.roles === "GYM") {
+            // 判断是用哪个渲染的
+            loading.value = false
+            staffLoading.value = false
+            return
+         }
          const iframeRef: any = document.getElementById("staffIframeRef")
          if (iframeRef && iframeRef.contentWindow?.renderXml) {
             staffLoading.value = true

+ 1 - 1
src/views/cloudPractice/useData.ts

@@ -41,7 +41,7 @@ export const useFunction = () => {
       //  GYM,GYT,KLX 区分   云教练
       const urlObj = {
          GYT: `${URL_TEACH_GYT}?id=${musicId}&modelType=practice&modeType=json&part-index=${partIndex}&Authorization=${getToken()}&isYjt=1&&isHideBack=false`,
-         GYM: `${URL_TEACH_GYM}?t=${Date.now()}#/?id=${musicId}&Authorization=${getToken()}&platform=web&part-index=${partIndex}&isPreView=true`,
+         GYM: `${URL_TEACH_GYM}?t=${Date.now()}#/?id=${musicId}&Authorization=${getToken()}&platform=web&part-index=${partIndex}&isPreView=true&systemType=teacher`,
          KLX: `${URL_TEACH_KLX}?Authorization=${getToken()}&id=${musicId}&limitModel=practice&part-index=${partIndex}&isYjt=1&client=teacher`
       }
       return urlObj[userStoreHook.roles!]