소스 검색

继续美化音乐卡片UI

onecold 4 달 전
부모
커밋
d9947e2d96
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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