Explorar o código

fixed pagination - total

hare8999@163.com %!s(int64=3) %!d(string=hai) anos
pai
achega
8dd1e6c116
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()