瀏覽代碼

fixed pagination - total

hare8999@163.com 2 年之前
父節點
當前提交
8dd1e6c116
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()