From 779760b28123b531fbecfe764e9e202f8d2c3f78 Mon Sep 17 00:00:00 2001 From: JimQing Date: Sat, 2 May 2020 16:28:00 +0800 Subject: [PATCH] upload image fix --- src/components/CodemirrorEditor.vue | 2 +- src/components/codeMirror/header.vue | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) 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 @@