Преглед изворни кода

Merge branch 'fine-music-score' into dev

lex пре 2 година
родитељ
комит
b89b30e956
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      src/views/musicLibrary/index.tsx

+ 6 - 1
src/views/musicLibrary/index.tsx

@@ -77,7 +77,12 @@ export default defineComponent({
           }
         })
 
-        state.musicList = res.data.rows
+        // state.musicList = res.data.rows
+        state.musicList = res.data.rows.map(n => {
+          if (typeof n.paymentType === 'string')
+            n.paymentType = n.paymentType.split(',')
+          return n
+        })
       } catch (e) {
         console.log(e)
       }