소스 검색

Update index.tsx

lex 2 년 전
부모
커밋
b27fb474fb
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  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