Kaynağa Gözat

容错处理

hare8999@163.com 2 yıl önce
ebeveyn
işleme
48b042b78c

+ 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
       })