소스 검색

添加体验模式

林旭祥 8 달 전
부모
커밋
aa2b4e87cf
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/OptionWindow/index.vue
  2. 1 0
      src/utils/ws.ts

+ 1 - 1
src/components/OptionWindow/index.vue

@@ -41,7 +41,7 @@
               </div>
               <div class="li">
                 <span>体验模式</span>
-                <el-switch v-model="optionForm.experience" :active-value="true" :inactive-value="false"
+                <el-switch v-model="optionForm.demo" :active-value="1" :inactive-value="0"
                   style="--el-switch-on-color: #08FFA9; --el-switch-off-color: #ACACAC" />
               </div>
               <div class="li" v-if="['skiprope'].includes(project.key)">

+ 1 - 0
src/utils/ws.ts

@@ -204,6 +204,7 @@ const getExamStarts = (data?: any) => {
       class_id: parameter.classes,
       exam_type: parameter.standard,
       gesture: parameter.gesture,
+      demo: parameter.demo,
       test_time: testTime
     },
     () => {}