소스 검색

同步练习bug修复

shilipojs 2 년 전
부모
커밋
53aaa1694c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/MxCondition/condition-object/condition-exe-grade.js

+ 1 - 1
src/components/MxCondition/condition-object/condition-exe-grade.js

@@ -13,7 +13,7 @@ export default {
   title: '学册',
   getList: function(param,$ref) {
     return new Promise((resolve, reject) => {
-      smartGradeList({subjectId:$ref.model.exeSubject,editionId:param.exeOrder}).then(res => resolve(res.data))
+      smartGradeList({subjectId:$ref.model.exeSubject,editionId:param.exeOrder}).then(res => resolve(res.data  || []))
         .catch(e => reject(e))
     })
   },