diff --git a/src/components/CodemirrorEditor.vue b/src/components/CodemirrorEditor.vue index 75a2276..242b701 100644 --- a/src/components/CodemirrorEditor.vue +++ b/src/components/CodemirrorEditor.vue @@ -131,7 +131,7 @@ export default { data.append('file', pasteFile) fileApi.fileUpload(data).then(res => { - this.uploaded(res.data) + this.uploaded(res) }).catch(err => { console.log(err.message) }) diff --git a/src/components/codeMirror/header.vue b/src/components/codeMirror/header.vue index bd9d11d..1a477b4 100644 --- a/src/components/codeMirror/header.vue +++ b/src/components/codeMirror/header.vue @@ -1,7 +1,8 @@