caicai8 5 years ago
parent e248eb1108
commit 0c2e4a307b

@ -44,7 +44,6 @@ class New extends Component{
getSelectList=()=>{ getSelectList=()=>{
const { projectsId } = this.props.match.params; const { projectsId } = this.props.match.params;
const url = `/projects/${projectsId}/issues/new.json`; const url = `/projects/${projectsId}/issues/new.json`;
axios.get(url).then((result)=>{ axios.get(url).then((result)=>{
if(result){ if(result){
@ -76,10 +75,12 @@ class New extends Component{
if(!err){ if(!err){
const { projectsId } = this.props.match.params; const { projectsId } = this.props.match.params;
const { fileList } = this.state; const { fileList } = this.state;
const { current_user } = this.props;
const url = `/projects/${projectsId}/issues.json`; const url = `/projects/${projectsId}/issues.json`;
axios.post(url,{ axios.post(url,{
...values, ...values,
attachment_ids:fileList attachment_ids:fileList,
author_id:current_user.user_id
}).then(result=>{ }).then(result=>{
if(result){ if(result){

Loading…
Cancel
Save