|
|
@@ -50,11 +50,11 @@
|
|
|
window.tempTip.setDuration(3000);
|
|
|
|
|
|
let formData = new FormData();
|
|
|
- let file = document.querySelector('#add-demand-file').files[0];
|
|
|
+ let file = document.querySelector('#add-demand-file-create').files[0];
|
|
|
if(this.addDemand['authority_id'])formData.append('authority_id', this.addDemand['authority_id']);
|
|
|
if(this.addDemand['type'])formData.append('type', this.addDemand['type']);
|
|
|
if(this.addDemand['description'])formData.append('description', this.addDemand['description']);
|
|
|
- if(file)formData.append('file', this.addDemand['file']);
|
|
|
+ if(file)formData.append('file', file);
|
|
|
|
|
|
window.axios.post(url, formData, {
|
|
|
'Content-Type': 'multipart/form-data'
|