提交 0cd3b5ed authored 作者: chscls@163.com's avatar chscls@163.com

修改请求bug

上级 2970368c
...@@ -772,7 +772,7 @@ export default class tableCom extends Component { ...@@ -772,7 +772,7 @@ export default class tableCom extends Component {
} }
reqUtil = (base52, json, orgCallback, url, method, params, callback, options = {}) => { reqUtil = (base52, json, orgCallback, url, method, params, callback, options = {}) => {
//查缓存 //查缓存
var isChange = false; var isChange = true;
if (url.indexOf("http") === -1) { if (url.indexOf("http") === -1) {
url = config.httpServer + url url = config.httpServer + url
} }
...@@ -858,7 +858,7 @@ export default class tableCom extends Component { ...@@ -858,7 +858,7 @@ export default class tableCom extends Component {
} }
return "norefeshxxxxxxxxxxxxxxxxxxxx" return "norefeshxxxxxxxxxxxxxxxxxxxx"
} }
this.setState({ reqUrls }, () => { this.setState({ }, () => {
for (let i in params) { for (let i in params) {
if (params[i] == null) { if (params[i] == null) {
delete params[i] delete params[i]
...@@ -882,10 +882,10 @@ export default class tableCom extends Component { ...@@ -882,10 +882,10 @@ export default class tableCom extends Component {
method: method, method: method,
requestType: "form" requestType: "form"
}).then(data => { }).then(data => {
this.setState({ res: data }, () => {
const { reqUrls } = this.state const { reqUrls } = this.state
reqUrls[url].data = data reqUrls[url].data = data
this.setState({ reqUrls }) this.setState({ res: data,reqUrls }, () => {
if (callback) { if (callback) {
if (json.optionType && json.optionType == "func") { if (json.optionType && json.optionType == "func") {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论