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; } } });