瀏覽代碼

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