Ver Fonte

容错处理

hare8999@163.com há 2 anos atrás
pai
commit
48b042b78c
1 ficheiros alterados com 3 adições e 0 exclusões
  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
       })