浏览代码

修复取值不一致的问题

lex-xin 5 月之前
父节点
当前提交
3402b799e8
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/views/cloudPractice/cloudPractice.tsx

+ 5 - 5
src/views/cloudPractice/cloudPractice.tsx

@@ -142,7 +142,7 @@ export default defineComponent({
                defaultScoreRender: list?.defaultScoreRender,
                musicPdfUrl: list?.musicPdfUrl
             }
-            console.log(tempList, "tempList --- tempList")
+            // console.log(tempList, "tempList --- tempList")
          } else if (userStoreHook.roles === "KLX") {
             // const item: any = list.background?.[0]
             tempList = {
@@ -1178,15 +1178,15 @@ export default defineComponent({
             //  GYM,GYT,KLX 区分   查询声部数据
             let cbsDetails: any = []
             if (userStoreHook.roles === "GYM" || userStoreHook.roles === "KLX") {
-               cbsDetails = state.details.musicalInstruments || []
+               cbsDetails = state.details.musicSheetSoundList || []
             } else if (userStoreHook.roles === "GYT") {
                //
             }
-            const { code } =
+            const { track } =
                cbsDetails.find((item: any) => {
-                  return instrumentIds == item.id
+                  return instrumentIds == item.musicalInstrumentId
                }) || {}
-            return code
+            return track
          }
          return undefined
       }