dev_aliyun
杨树明 5 years ago
parent a412dba662
commit 12a13d43cd

@ -56,7 +56,7 @@ class PackageConcent extends Component {
let Url = `/api/v1/project_package_categories.json`; let Url = `/api/v1/project_package_categories.json`;
axios.get(Url).then((response) => { axios.get(Url).then((response) => {
console.log(response) // console.log(response)
this.setState({ this.setState({
categories:response.data.categories categories:response.data.categories
}) })

@ -182,7 +182,7 @@ class PackageIndexNEITaskDetails extends Component {
let url=`/project_packages/${this.props.match.params.id}.json`; let url=`/project_packages/${this.props.match.params.id}.json`;
axios.delete(url ).then((response) => { axios.delete(url ).then((response) => {
// const status = response.data.status // const status = response.data.status
console.log(response) // console.log(response)
this.props.showSnackbar('删除成功'); this.props.showSnackbar('删除成功');
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)

Loading…
Cancel
Save