lex před 2 roky
rodič
revize
9881469f9e
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 6 1
      src/views/musicLibrary/index.tsx

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

@@ -73,7 +73,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)
       }