Parcourir la source

fixed pagination - total

hare8999@163.com il y a 2 ans
Parent
commit
8dd1e6c116
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/views/elective/generation/detail.vue

+ 1 - 1
src/views/elective/generation/detail.vue

@@ -201,7 +201,7 @@ export default {
       this.loading = true
       this.majorsMap = null
       getElectiveGenerationDetails(params).then(res => {
-        this.total = res['total']
+        this.total = res['total'] || 0
         this.detailWrapper = res.data
 
         const studentIds = res.data.details?.map(d => d['studentId']).toString()