Browse Source

elective detail - pagination

hare8999@163.com 2 năm trước cách đây
mục cha
commit
ccf629d387
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()