dev_forum
杨树明 5 years ago
parent 05b741652d
commit ef8887bb1d

@ -78,6 +78,12 @@ class CoursesNew extends Component {
console.log(error); console.log(error);
}) })
}else{ }else{
let url = "/courses/new.json"
axios.get(url).then((result) => {
console.log(result)
}).catch((error) => {
console.log(error);
})
// console.log(user_school); // console.log(user_school);
this.props.form.setFieldsValue({ this.props.form.setFieldsValue({
school:user_school, school:user_school,

@ -158,6 +158,15 @@ class PathNew extends Component{
} }
componentDidMount() { componentDidMount() {
let url = "/paths/new.json"
axios.get(url).then((result) => {
console.log(result)
}).catch((error) => {
console.log(error);
})
let pathId = this.props.match.params.pathId; let pathId = this.props.match.params.pathId;
if (pathId) { if (pathId) {
this.isEditPage = true this.isEditPage = true

Loading…
Cancel
Save