wolyshaw 3 years ago
parent
commit
42dc63df01
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/teacher/music/upload/index.tsx

+ 6 - 1
src/teacher/music/upload/index.tsx

@@ -188,7 +188,12 @@ export default defineComponent({
         // this.audioType = res.data.mp3Type
 
         if (this.audioType === 'MP3') {
-          this.hasBeat = res.data.hasBeat || 0
+          this.hasBeat =
+            (res.data.audioType === 'MP3' &&
+              res.data.mp3Type === 'MP3_METRONOME') ||
+            res.data.audioType === 'MIDI'
+              ? 1
+              : 0
           this.mp3Url = res.data.metronomeUrl || res.data.url
         } else {
           this.midiUrl = res.data.midiUrl