소스 검색

容错处理

hare8999@163.com 3 년 전
부모
커밋
48b042b78c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/views/system/user/profile/round-select.vue

+ 3 - 0
src/views/system/user/profile/round-select.vue

@@ -153,6 +153,9 @@ export default {
     loadStudentSelected() {
       getStudentSelected().then(res => {
         console.log('getStudentSelected', res)
+        const status = res.data['selectResult']
+        status.currentGeneration = status.currentGeneration || 9
+        status.preferenceCount = status.preferenceCount || 3
         this.selectObj = res.data['selectResult']
         this.allowSelect = res.data.allowSelect
       })