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!]