Pārlūkot izejas kodu

Update index.tsx

lex 2 gadi atpakaļ
vecāks
revīzija
b27fb474fb
1 mainītis faili ar 1 papildinājumiem un 5 dzēšanām
  1. 1 5
      src/teacher/music/upload/index.tsx

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

@@ -277,11 +277,7 @@ export default defineComponent({
         xmlFileUrl: this.xmlFileUrl,
         canEvaluate: Number(this.canEvaluate),
         chargeType: this.chargeType === 0 ? 'FREE' : 'CHARGE',
-        paymentType: this.paymentType
-          ? this.paymentType
-          : this.chargeType === 0
-          ? 'FREE'
-          : 'CHARGE',
+        paymentType: this.chargeType === 0 ? 'FREE' : 'CHARGE',
         exquisiteFlag: this.exquisiteFlag,
         composer: this.composer,
         musicPrice: this.chargeType === 0 ? 0 : this.musicPrice, // 当选择免费时,重置金额为0