From 873fb323bd46ea15ae615645c75e70d33a0da1b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Mon, 17 Jun 2024 18:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/components/wangEditor.vue | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/views/system/components/wangEditor.vue b/src/views/system/components/wangEditor.vue index c6f8286..77fcab1 100644 --- a/src/views/system/components/wangEditor.vue +++ b/src/views/system/components/wangEditor.vue @@ -193,10 +193,9 @@ export default { ); this.$refs.cascaderAddr.getCheckedNodes().map((e) => { console.log(e, "55555555555"); - if(e.children.length == 0){ + if (e.children.length == 0) { this.add.push(e.label); } - }); }, @@ -263,25 +262,28 @@ export default { }, 100); }, fieldclick() { - var aaa = document.querySelectorAll(".divBox"); // console.log(this.html, "this.html--before"); console.log(aaa, "打印dom"); + // if (aaa.length != 0) { // console.log(this.html, "this.html111"); // aaa.remove(); - // } + // } // else - if(aaa.length==0){ + if (aaa.length == 0) { // aaa.innerHTML = ""; - this.html += `${this.add}`; - console.log(this.html, "this.html2222"); + this.html += `