Browse Source

学生小酷AI:【其他曲谱】要增加传参

liushengqiang 2 years ago
parent
commit
1fd97be6f0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/page-instrument/component/the-music-list/list.tsx

+ 2 - 0
src/page-instrument/component/the-music-list/list.tsx

@@ -20,6 +20,7 @@ export default defineComponent({
 			rows: 20,
 			musicSheetCategoriesId: state.musicSheetCategoriesId,
 			recentFlag: props.recentFlag ? true : null,
+			excludeMusicId: state.examSongId,
 		});
 		const data = reactive({
 			list: [] as any[],
@@ -47,6 +48,7 @@ export default defineComponent({
 		});
 
 		const openAccomapina = (item: any) => {
+			if (item.id === state.examSongId) return;
 			// 暂停播放
 			togglePlay("paused");
 			postMessage({