Sfoglia il codice sorgente

继续美化音乐卡片UI

onecold 4 mesi fa
parent
commit
d9947e2d96
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      entry/src/main/ets/common/player/MusicCardSnapshot.ets

+ 2 - 2
entry/src/main/ets/common/player/MusicCardSnapshot.ets

@@ -96,8 +96,8 @@ export function resolveMusicCardLyricMetaText(
 ): string {
   const safeArtist = artist?.trim() ?? ''
   const safeCurrentLyric = currentLyric?.trim() ?? ''
-  if (safeArtist !== '' && hasLyric && safeCurrentLyric !== '') {
-    return `${safeArtist} - ${safeCurrentLyric}`
+  if ( hasLyric && safeCurrentLyric !== '') {
+    return `${safeCurrentLyric}`
   }
   if (safeArtist !== '') {
     return safeArtist