修复音乐名称和歌手信息格式化(#2733)

This commit is contained in:
lyswhut
2026-04-23 18:08:44 +08:00
parent 2cf84a796d
commit ba8a6bf76c
8 changed files with 17 additions and 10 deletions
@@ -66,6 +66,7 @@ import {
import { appSetting } from '@renderer/store/setting'
import { togglePlay, playNext, playPrev } from '@renderer/core/player'
import { LIST_IDS } from '@common/constants'
import { formatMusicName } from '@renderer/utils'
export default {
name: 'CorePlayBar',
@@ -112,7 +113,7 @@ export default {
const title = computed(() => {
return musicInfo.name
? appSetting['download.fileName'].replace('歌名', musicInfo.name).replace('歌手', musicInfo.singer)
? formatMusicName(appSetting['download.fileName'], musicInfo.name, musicInfo.singer)
: ''
})
@@ -66,6 +66,7 @@ import {
import { appSetting } from '@renderer/store/setting'
import { togglePlay, playNext, playPrev } from '@renderer/core/player'
import { LIST_IDS } from '@common/constants'
import { formatMusicName } from '@renderer/utils'
export default {
name: 'CorePlayBar',
@@ -112,7 +113,7 @@ export default {
const title = computed(() => {
return musicInfo.name
? appSetting['download.fileName'].replace('歌名', musicInfo.name).replace('歌手', musicInfo.singer)
? formatMusicName(appSetting['download.fileName'], musicInfo.name, musicInfo.singer)
: ''
})
@@ -68,6 +68,7 @@ import {
import { appSetting } from '@renderer/store/setting'
import { togglePlay, playNext, playPrev } from '@renderer/core/player'
import { LIST_IDS } from '@common/constants'
import { formatMusicName } from '@renderer/utils'
export default {
name: 'CorePlayBar',
@@ -114,7 +115,7 @@ export default {
const title = computed(() => {
return musicInfo.name
? appSetting['download.fileName'].replace('歌名', musicInfo.name).replace('歌手', musicInfo.singer)
? formatMusicName(appSetting['download.fileName'], musicInfo.name, musicInfo.singer)
: ''
})