1. Use axios to get the data in the interface. If you want to add the data to the span tag in render, how to add it?
2.axios.get ("", {
timeout: 1000,
})
.then(function (response) {
var lists=response.data.data;
var problem=lists.ASK_CONTENT;
console.log(problem);
})
.catch(function (error) {
console.log(11111);
});
render () {
const { getFieldDecorator } = this.props.form;
const formItemLayout = {
labelCol: { span: 6 },
wrapperCol: { span: 14 },
};
return (
<Form onSubmit={this.handleSubmit}>
<FormItem
{...formItemLayout}
label=":"
className="problems"
>
<span className="ant-form-text wenti">problem</span>
</FormItem>
3.