dev_oauth
杨树林 6 years ago
parent 378e998681
commit a38249f002

@ -364,10 +364,10 @@ class Goldsubject extends Component {
// debugger
//新建
// console.log('Received values of form: ', values);
let subjectid = this.props.match.params.subjectid;
let url = "/courses.json";
axios.post(url, {
subject_id:128, //这是带过来的值
subject_id:subjectid, //这是带过来的值
name: values.classroom,
class_period: values.period,
credit: parseFloat(values.credit),

Loading…
Cancel
Save