|
@@ -24,11 +24,14 @@ export default defineComponent({
|
|
|
const partList = state.activeDetail?.background || []
|
|
|
return partList.map((item: any, index: number) => {
|
|
|
const instrumentName = getInstrumentName(item.track)
|
|
|
+ if (!instrumentName){
|
|
|
+ return ''
|
|
|
+ }
|
|
|
return {
|
|
|
text: item.track + (instrumentName ? `(${instrumentName})` : ''),
|
|
|
value: index,
|
|
|
}
|
|
|
- })
|
|
|
+ }).filter(Boolean)
|
|
|
})
|
|
|
|
|
|
const switchMusic = (index: number) => {
|