disabling axios response auto-transformation when editing content, fixes #110

This commit is contained in:
Milos Stojanovic 2020-07-18 12:39:59 +02:00
parent 11b2e2a739
commit 613aeda8be
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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))
})