当前位置:网站首页>[bug resolution] the form is paged to display the total data res.data total

[bug resolution] the form is paged to display the total data res.data total

2022-06-11 12:56:00 It's Yanyan (whose vest)

 Insert picture description here

Benecke gear –【 Statistical analysis 】–【 The service life of the wheel is displayed 】– The service life of the wheel is being displayed , No paging , In fact, there are other data

Here are some Inline code slice .

// A code block
var foo = 'bar';
// An highlighted block
axios().then(res => {
    
  if( ret == ){
    
     this.total = res.data.total //  Add this line of code   Get all paging data from the interface 
}
})
 .then((res) => {
    
          if (res.data.ret === 1 && Array.isArray(res.data.data)) {
    
            this.total = res.data.total;// Add this sentence here 
            
          }
          });
原网站

版权声明
本文为[It's Yanyan (whose vest)]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206111227042681.html