Browse Source

Merge branch 'iteration_1.3.3' into dev

lex 2 năm trước cách đây
mục cha
commit
b612731aee
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/user-info/music-operation/index.tsx

+ 2 - 2
src/views/user-info/music-operation/index.tsx

@@ -167,7 +167,7 @@ export default defineComponent({
         mp3Type,
         accompanimentType: form.accompanimentType,
         titleImg: form.titleImg,
-        hasBeat: form.hasBeat,
+        hasBeat: Number(form.hasBeat),
         url: form.hasBeat ? '' : form.mp3Url,
         metronomeUrl: form.hasBeat ? form.mp3Url : '',
         showFingering: Number(form.showFingering),
@@ -180,7 +180,7 @@ export default defineComponent({
         canEvaluate: Number(form.canEvaluate),
         chargeType: form.chargeType === 0 ? 'FREE' : 'CHARGE',
         composer: form.composer,
-        musicPrice: form.musicPrice,
+        musicPrice: form.chargeType === 0 ? 0 : form.musicPrice,
         background: form.backgroundMp3s.map(item => ({
           audioFileUrl: form.hasBeat ? '' : form.bgmp3Url,
           track: item.track,