소스 검색

fix: 单双评设置问题

zhangjie 2 달 전
부모
커밋
3683fcfbc6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/modules/mark/components/markParam/ModifyMarkType.vue

+ 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;
     },