bugfix(editor): download json as plaintext to edit it

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-08-22 14:10:18 +02:00
1 parent b6703c84f1
commit da3f8b2907
1 file changed
+3 -2
+3 -2
View File
@@ -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,