|
@@ -21,12 +21,10 @@ export default defineComponent({
|
|
|
const search = useOriginSearch()
|
|
|
|
|
|
const partListNames = computed(() => {
|
|
|
- const partList = state.activeDetail?.background || []
|
|
|
+ let partList = state.activeDetail?.background || []
|
|
|
+ partList = partList.filter((item: any) => !item.track?.toLocaleUpperCase()?.includes('COMMON'))
|
|
|
return partList.map((item: any, index: number) => {
|
|
|
const instrumentName = getInstrumentName(item.track)
|
|
|
- if (!instrumentName){
|
|
|
- return ''
|
|
|
- }
|
|
|
return {
|
|
|
text: item.track + (instrumentName ? `(${instrumentName})` : ''),
|
|
|
value: index,
|
|
@@ -34,11 +32,6 @@ export default defineComponent({
|
|
|
}).filter(Boolean)
|
|
|
})
|
|
|
|
|
|
- const partIndex = computed(() => {
|
|
|
- const partIndex = partListNames.value.findIndex((item: any) => item.value === state.partIndex)
|
|
|
- return partIndex > -1 ? partIndex : 0
|
|
|
- })
|
|
|
-
|
|
|
const switchMusic = (index: number) => {
|
|
|
// 暂停播放
|
|
|
RuntimeUtils.pause()
|
|
@@ -70,7 +63,7 @@ export default defineComponent({
|
|
|
return () => (
|
|
|
<Popup class={styles.popup} v-model:show={toggleMusicSheet.show}>
|
|
|
<ChoosePartName
|
|
|
- partIndex={partIndex.value}
|
|
|
+ partIndex={state.partIndex}
|
|
|
partListNames={partListNames.value}
|
|
|
onClose={(value) => {
|
|
|
console.log("🚀 ~ value:", value)
|