bugfix(editor): download json as plaintext to edit it
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
b6703c84f1
commit
da3f8b2907
1 file changed
+3
-2
@@ -53,8 +53,9 @@ export const actions: ActionTree<EditorState, RootState> = {
|
||||
lastLoaded: lastLoaded,
|
||||
lastTimestamp: lastTimestamp
|
||||
})
|
||||
}
|
||||
}).then(res => res.data)
|
||||
},
|
||||
responseType: 'blob'
|
||||
}).then(res => res.data.text())
|
||||
.then(file => {
|
||||
commit('openFile', {
|
||||
filename: payload.filename,
|
||||
|
||||
Reference in new issue
Block a user