Explorar o código

elective detail - pagination

hare8999@163.com %!s(int64=2) %!d(string=hai) anos
pai
achega
ccf629d387
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

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