move formData generating logic to api.service
This commit is contained in:
parent
562120ae48
commit
903bce40c3
3 changed files with 6 additions and 7 deletions
|
@ -13,10 +13,7 @@ const Importer = {
|
|||
},
|
||||
submit () {
|
||||
this.uploading = true
|
||||
// eslint-disable-next-line no-undef
|
||||
const formData = new FormData()
|
||||
formData.append('list', this.file)
|
||||
this.$store.state.api.backendInteractor.followImport({params: formData})
|
||||
this.$store.state.api.backendInteractor.followImport(this.file)
|
||||
.then((status) => {
|
||||
if (status) {
|
||||
this.success = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue