Forráskód Böngészése

fix: 单双评设置问题

zhangjie 2 hónapja
szülő
commit
3683fcfbc6

+ 2 - 2
src/modules/mark/components/markParam/ModifyMarkType.vue

@@ -85,7 +85,7 @@ import { mapState } from "vuex";
 
 const initModalForm = {
   doubleEnable: false,
-  doubleRate: 100,
+  doubleRate: 0,
   arbitrateThreshold: null,
   scorePolicy: "AVG",
 };
@@ -136,8 +136,8 @@ export default {
   methods: {
     visibleChange() {
       this.modalForm = this.$objAssign(initModalForm, this.instance);
+      this.modalForm.doubleRate = this.modalForm.doubleRate || 0;
       this.modalForm.doubleEnable = this.modalForm.doubleRate > 0;
-      this.modalForm.doubleRate = this.modalForm.doubleRate || 100;
       this.modalForm.arbitrateThreshold =
         this.modalForm.arbitrateThreshold || undefined;
     },