From a5a254c0d1dbf88050f5c4cda7fcf14b6ec9e8c1 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Thu, 30 Jul 2020 15:13:43 +0800 Subject: [PATCH] fix: update CodemirrorEditor --- src/view/CodemirrorEditor.vue | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/src/view/CodemirrorEditor.vue b/src/view/CodemirrorEditor.vue index 2835ca6..4e4fef4 100644 --- a/src/view/CodemirrorEditor.vue +++ b/src/view/CodemirrorEditor.vue @@ -17,19 +17,11 @@ - + - +
@@ -139,23 +131,17 @@ export default { let item = e.clipboardData.items[i] if (item.kind === 'file') { this.isImgLoading = true; - this.$message({ - showClose: true, - message: '正在加载资源' - }); const pasteFile = item.getAsFile() - uploadImgFile(pasteFile).then(res=> { this.uploaded(res) - this.isImgLoading = false; }).catch(err=> { this.$message({ showClose: true, message: err, type: 'error' }); - this.isImgLoading = false; }); + this.isImgLoading = false; } } });