From 0abb90cb4feb20f48d4efaf077919b661308ff14 Mon Sep 17 00:00:00 2001 From: JimQing Date: Sat, 2 May 2020 15:55:28 +0800 Subject: [PATCH] bug fix --- src/components/CodemirrorEditor.vue | 2 +- src/element/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/CodemirrorEditor.vue b/src/components/CodemirrorEditor.vue index 14f7f5a..75a2276 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(resp.data) + this.uploaded(res.data) }).catch(err => { console.log(err.message) }) diff --git a/src/element/index.js b/src/element/index.js index 739a0df..2bde310 100644 --- a/src/element/index.js +++ b/src/element/index.js @@ -35,7 +35,7 @@ Vue.use(Col) Vue.use(Row) Vue.use(Dialog) Vue.use(Loading) -Vue.use(Message) +Vue.component(Message.name, Message) Vue.prototype.$loading = Loading.service Vue.prototype.$message = Message