Skip to content

Commit

Permalink
disabling axios response auto-transformation when editing content, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alcalbg committed Jul 18, 2020
1 parent 11b2e2a commit 613aeda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
],
rules: {
// override/add rules settings here, such as:
'no-console': 0,
'no-unused-vars': 'error',
'vue/require-prop-types': 0,
'vue/max-attributes-per-line': 4,
Expand Down
3 changes: 2 additions & 1 deletion frontend/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ const api = {
},
downloadItem (params) {
return new Promise((resolve, reject) => {
axios.get('download&path='+encodeURIComponent(Base64.encode(params.path)))
axios.get('download&path='+encodeURIComponent(Base64.encode(params.path)),
{transformResponse : undefined})
.then(res => resolve(res.data))
.catch(error => reject(error))
})
Expand Down

0 comments on commit 613aeda

Please sign in to comment.