解决冲突

This commit is contained in:
red-deng-deng 2021-11-17 14:56:16 +08:00
parent ea59a18c5d
commit 6ccc1544c8
3 changed files with 14 additions and 7 deletions

View File

@ -2,7 +2,7 @@ export const baseurl = 'http://market.api.system.com'
// 通用公用方法get和post
const req = (method, url, params, responseType) => {
var obj=null;
var obj = null;
if (method == "get") {
if (params) {
let paramsArray = [];
@ -24,7 +24,7 @@ const req = (method, url, params, responseType) => {
})
}
}
let http = fetch(url,obj).then(res => res.json());
let http = fetch(url, obj).then(res => res.json());
return http.then(response => response).catch(error => console.error('Error:', error));
}

View File

@ -143,6 +143,7 @@ export default class menu extends React.Component {
allChecked: false,
tableData: props.tableData,
Column: props.Column,
dataTotal:props.dataTotal,
indeterminate: false,
pageNum:0,
pageCount:props.dataCount,
@ -559,7 +560,7 @@ export default class menu extends React.Component {
<div className={this.state.pageLoading ? "pagebar hide":"pagebar"} >
<Pagination data = {
{
count: 25
count: this.state.dataTotal
}
}
onPrevClick = {

File diff suppressed because one or more lines are too long