Sfoglia il codice sorgente

elective detail - pagination

hare8999@163.com 2 anni fa
parent
commit
ccf629d387
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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()