From 46f5d401c66125c1ba0d05b220b59ac84473f3e7 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Fri, 25 Feb 2022 10:50:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7=E5=B8=A6=E6=9D=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/views/components/Editor.vue | 6 +-- src/views/tools/email/send.vue | 78 +++++++-------------------------- 3 files changed, 21 insertions(+), 65 deletions(-) diff --git a/package.json b/package.json index 117f8cb..6f99949 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "vue-splitpane": "1.0.4", "vuedraggable": "2.20.0", "vuex": "3.1.0", - "wangeditor": "^4.7.9", + "wangeditor": "^4.7.11", "xlsx": "^0.17.4" }, "devDependencies": { diff --git a/src/views/components/Editor.vue b/src/views/components/Editor.vue index 13a3481..69f841f 100644 --- a/src/views/components/Editor.vue +++ b/src/views/components/Editor.vue @@ -41,9 +41,9 @@ export default { const _this = this var editor = new E(this.$refs.editor) // 自定义菜单配置 - editor.customConfig.zIndex = 5 + editor.config.zIndex = 5 // 文件上传 - editor.customConfig.customUploadImg = function(files, insert) { + editor.config.customUploadImg = function(files, insert) { // files 是 input 中选中的文件列表 // insert 是获取图片 url 后,插入到编辑器的方法 files.forEach(image => { @@ -54,7 +54,7 @@ export default { }) }) } - editor.customConfig.onchange = (html) => { + editor.config.onchange = (html) => { this.editorContent = html } editor.create() diff --git a/src/views/tools/email/send.vue b/src/views/tools/email/send.vue index e95885e..d4bd568 100644 --- a/src/views/tools/email/send.vue +++ b/src/views/tools/email/send.vue @@ -2,19 +2,13 @@