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