Преглед на файлове

Merge branch 'iteration_1.3.3' into dev

lex преди 2 години
родител
ревизия
b612731aee
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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,