黄琪勇 10 months ago
parent
commit
53f20bd125
1 changed files with 13 additions and 9 deletions
  1. 13 9
      src/tenant/music/component/song/index.tsx

+ 13 - 9
src/tenant/music/component/song/index.tsx

@@ -60,19 +60,19 @@ export default defineComponent({
     //   }
     // }
 
-    const list = computed(() => {
-      return props.list.map(n => {
-        // if (typeof n.paymentType === 'string')
-        //   n.paymentType = n.paymentType.split(',')
-        n.subjectNames = n.musicSubjectName
-        return { ...n }
-      })
-    })
+    // const list = computed(() => {
+    //   return props.list.map(n => {
+    //     // if (typeof n.paymentType === 'string')
+    //     //   n.paymentType = n.paymentType.split(',')
+    //     n.subjectNames = n.musicSubjectName
+    //     return { ...n }
+    //   })
+    // })
 
     return () => {
       return (
         <div class={styles.theSong}>
-          {list.value.map((n: any, index: number) => (
+          {props.list.map((n: any, index: number) => (
             <div class={styles.item} onClick={() => emit('detail', n)}>
               {props.showNumber && <div class={styles.num}>{index + 1}</div>}
               {props.showTitleImg && (
@@ -112,6 +112,10 @@ export default defineComponent({
                       n.subjectNames
                         ?.split(',')
                         .map((name: any) => <span>{name}</span>)}
+                    {n.musicSubjectName &&
+                      n.musicSubjectName
+                        ?.split(',')
+                        .map((name: any) => <span>{name}</span>)}
                     {n.musicSheetType === 'CONCERT' && <span>合奏</span>}
                   </div>