瀏覽代碼

添加优化

yuanliang 1 年之前
父節點
當前提交
d8d95ed3fb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/music-library/music-sheet/modal/music-operationV2.tsx

+ 2 - 2
src/views/music-library/music-sheet/modal/music-operationV2.tsx

@@ -404,7 +404,7 @@ export default defineComponent({
             if (musicSheetType == 'CONCERT' && forms.musicSheetSoundList_YY.length > 0) {
               audioPlayTypes.push("PLAY")
               forms.musicSheetSoundList_YY.forEach((musicSheetSound: any) => {
-                if (musicSheetSound.track) {
+                if (musicSheetSound.track && musicSheetSound.audioFileUrl) {
                   musicSheetSoundList.push({
                     ...musicSheetSound,
                     musicSheetId: props.data.id,
@@ -428,7 +428,7 @@ export default defineComponent({
             if (musicSheetType == 'CONCERT' && forms.musicSheetSoundList_YY.length > 0) {
               audioPlayTypes.push("PLAY")
               forms.musicSheetSoundList_YY.forEach((musicSheetSound: any) => {
-                if (musicSheetSound.track) {
+                if (musicSheetSound.track && musicSheetSound.audioFileUrl) {
                   musicSheetSoundList.push({
                     ...musicSheetSound,
                     musicSheetId: props.data.id,