[Vuejs]-Cant pass response data to JSON

0👍

A post data returns a Response object. What you want to do is change your code to take the Response’s text property and then parse that as a JSON object, like so:

this.axios.post(store.state.backendEndpoint + '/ImportExport/Import',
            formData,{
                headers: {
                    'Content-Type': 'multipart/form-data'
                }
            }
            ).then(function(response){
                this.parsedData = JSON.parse(response.text());
            });

Leave a comment