diff options
| author | taehoon <th.dev91@gmail.com> | 2019-03-29 23:39:24 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-04-27 08:31:06 -0400 |
| commit | 903bce40c3b013ed2f2347c254ea184293b45b22 (patch) | |
| tree | 288c21a5ce32422e08cbe46d8daeb38dc20d7387 /src/components/importer | |
| parent | 562120ae48945d87a24f2248f9b16185b49159d0 (diff) | |
move formData generating logic to api.service
Diffstat (limited to 'src/components/importer')
| -rw-r--r-- | src/components/importer/importer.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/importer/importer.js b/src/components/importer/importer.js index 8d6c8b3f..44d02c93 100644 --- a/src/components/importer/importer.js +++ b/src/components/importer/importer.js @@ -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 |
