fix: task attachment upload
This commit is contained in:
parent
c7b4c25caa
commit
6d472bf5ca
1 changed files with 5 additions and 7 deletions
|
@ -462,8 +462,6 @@ export default class AbstractService {
|
|||
* @returns {Q.Promise<unknown>}
|
||||
*/
|
||||
async uploadFormData(url, formData) {
|
||||
console.log(formData, formData._boundary)
|
||||
|
||||
const cancel = this.setLoading()
|
||||
try {
|
||||
const response = await this.http.put(
|
||||
|
@ -479,7 +477,7 @@ export default class AbstractService {
|
|||
},
|
||||
},
|
||||
)
|
||||
this.modelCreateFactory(response.data)
|
||||
return this.modelCreateFactory(response.data)
|
||||
} finally {
|
||||
this.uploadProgress = 0
|
||||
cancel()
|
||||
|
|
Loading…
Add table
Reference in a new issue