lex 2 年之前
父节点
当前提交
9881469f9e
共有 1 个文件被更改,包括 6 次插入1 次删除
  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)
       }