import React, { Component } from "react"; import { CBreadcrumb } from 'educoder'; import './new/common.css' import '../css/Courses.css' import ExerciseNewCommon from './ExerciseNewCommon' class ExerciceNew extends Component { constructor(props) { super(props); this.state = { left_banner_id: null } } initData = (data) => { this.setState({ left_banner_id: data.left_banner_id }) } componentDidMount() { document.title = this.props.coursedata && this.props.coursedata.name; } render() { let { left_banner_id } = this.state; const { current_user } = this.props const courseId = this.props.match.params.coursesId; return (
{this.isEdit ? "编辑" : "新建"}试卷 this.props.history.push(`/classrooms/${courseId}/exercises/${left_banner_id}`)}> 返回