Explorar el Código

模考BUG修复

Tang hace 2 años
padre
commit
cbc1ee6906
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/pages/mock-exam/index.vue

+ 3 - 1
src/pages/mock-exam/index.vue

@@ -1342,10 +1342,12 @@ export default {
         orderGoodsId: this.orderGoodsId,
         from: this.doMode == 3 ? 3 : ""
       }).then(async items => {
-        var data = items.data.questionList
+        var data = []
         if (this.doMode == 3) {
           this.simulateExamId = items.data.simulateExamId;
           data = items.data.questionList;
+        }else{
+          data = items.data
         }
         if (!data.length) {
           this.$message({