Browse Source

Update index.tsx

lex-wxl 1 week ago
parent
commit
7a2eac16fd
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/music/music-detail/index.tsx

+ 3 - 3
src/views/music/music-detail/index.tsx

@@ -575,9 +575,9 @@ export default defineComponent({
       return {
         hasTenantAlbum: route.query?.tenantAlbumId ? true : false, // 是否从专辑来的
         play: music.play ? true : false, // 是否可以播放
-        free: music?.paymentType.includes('FREE'),
-        charge: music?.paymentType.includes('CHARGE'),
-        vip: music?.paymentType.includes('VIP'),
+        free: music?.paymentType?.includes('FREE'),
+        charge: music?.paymentType?.includes('CHARGE'),
+        vip: music?.paymentType?.includes('VIP'),
         buy: music?.orderStatus === 'PAID' // 是否已买
       }
     })