修复音乐名称和歌手信息格式化(#2733)
This commit is contained in:
@@ -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)
|
||||
: ''
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user