fix: http plugin fix a bug

Signed-off-by: feihu.wang <wfh45678@163.com>
This commit is contained in:
feihu.wang
2019-12-24 10:27:37 +08:00
parent bf91e5ef84
commit 44799b72a0
2 changed files with 4 additions and 4 deletions

View File

@@ -46,12 +46,12 @@ export default class AddPreItem extends React.Component{
state['sourceLabel']='';
state['args']='';
state['status']=1;
state['configJson']='';
state['configJson']= JSON.stringify({});
}
state[name] = trim(value);
if(name=='sourceField'){
state['sourceLabel']=this.props.fieldList.filter(x=>x.fieldName==value)[0].label;
state['sourceLabel']= this.props.fieldList.filter(x => x.fieldName==value)[0].label;
}
this.setState(state);
@@ -83,7 +83,7 @@ export default class AddPreItem extends React.Component{
args:'',
reqType:'GET',
visible:true,
configJson:''
configJson:JSON.stringify({})
})
}

View File

@@ -64,7 +64,7 @@ export default class EditPreItem extends React.Component{
state['sourceField']='';
state['sourceLabel']='';
state['args']='';
state['configJson']='';
state['configJson']=JSON.stringify({});
}
state[name] = trim(value);