[Vue warn]: Invalid prop: custom validator check failed for prop "pagination".错误

遇到的错误如下:

 [Vue warn]: Invalid prop: custom validator check failed for prop "pagination".

found in

---> 
       
          at src/views/om/userTerminal/UserTerminal.vue
            at src/layouts/RouteView.vue... (1 recursive calls)
             
               
                 
                   
                     
                       
                          at src/layouts/BasicLayout.vue
                           
                              at src/App.vue
                               

错误提示:在model之下的table里有错误,pagination类型无法准确插入。

最后排查出来的结果是获取后端数据后将结果集的total赋值给了pagination.total

this.$http({
        url: '/getUserTerminalList',
        method: 'post',
        data: this.formData
      }).then(res => {
        this.datas = res.list
        this.pagination.total = res.total
      })

将this.pagination.total = res.total删除即可

你可能感兴趣的:(antd)