|
@@ -29,7 +29,7 @@ export default defineComponent({
|
|
|
if (res.code === 200) {
|
|
|
// 当不是节奏练习(isAllSubject),并且是独奏SINGLE,且有演奏文件的时候PLAY 才加载乐器列表字段;当乐器列表大于1个的时候才显示,默认展示第一个乐器
|
|
|
const { isAllSubject, musicSheetType, audioPlayTypes, musicalInstruments } = res.data
|
|
|
- if (!isAllSubject && musicSheetType === 'SINGLE' && ['PLAY'].includes(audioPlayTypes)) {
|
|
|
+ if (!isAllSubject && musicSheetType === 'SINGLE' && audioPlayTypes.includes("PLAY")) {
|
|
|
musicalInstrumentsList.value = (musicalInstruments || []).map((item: any) => {
|
|
|
return {
|
|
|
value: item.id,
|