mirror of
https://github.com/filegator/filegator.git
synced 2025-01-16 20:28:22 +01:00
disabling axios response auto-transformation when editing content, fixes #110
This commit is contained in:
parent
11b2e2a739
commit
613aeda8be
@ -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,
|
||||
|
@ -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))
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user