import React, {Component} from 'react'; import {Button, Layout, Input, Form} from 'antd'; import axios from 'axios'; import {getImageUrl} from 'educoder'; class Modifytext extends Component { constructor(props) { super(props) this.state = {} } componentDidMount() { } //重新输入教学模式 Modifytext = () => { this.props.form.validateFieldsAndScroll((err, values) => { if (!err) { const url = `/paths/${this.props.pathid}/update_team_title.json`; axios.post(url, { team_title: values.teachingteam }).then((response) => { console.log(response); if (response) { if (response.data) { if (response.data.status === 0) { try { this.props.showNotification("修改成功!"); } catch (e) { } try { this.props.modifysy(2); } catch (e) { } } } } }).catch((error) => { console.log(error) }) } }) } //取消 hideUpdating = () => { this.props.modifysy(3); } render() { const {getFieldDecorator} = this.props.form; return (