Browse Source

修改默认速度

lex 9 months ago
parent
commit
2b20a57c63
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/teacher/music/upload/index.tsx

+ 4 - 2
src/teacher/music/upload/index.tsx

@@ -69,7 +69,7 @@ export default defineComponent({
       composer: '',
       remark: '',
       // repeatedBeats: 0,
-      playSpeed: '100' as any,
+      playSpeed: '' as any,
       // hasBeat: 0,
       musicCover: '',
       paymentType: 'CHARGE',
@@ -275,8 +275,10 @@ export default defineComponent({
       if (!this.composer) {
         this.composer = data.composer
       }
-      if (data.speed) {
+      if (!this.playSpeed && data.speed) {
         this.playSpeed = '' + data.speed
+      } else {
+        this.playSpeed = '100'
       }
     },
     naiveXMLFile() {