From a404a71ba273660e3ed21f8f942f44cd2eccbb53 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Fri, 1 Sep 2023 09:36:39 +0800 Subject: [PATCH] =?UTF-8?q?Demo=EF=BC=9A=E4=B8=8D=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E5=86=85=E9=83=A8=E6=BF=80=E6=B4=BB=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E5=88=97=E8=A1=A8=EF=BC=8C=E4=BC=98=E5=8C=96=E6=80=A7?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Edit/components/NodeHyperlink.vue | 2 +- web/src/pages/Edit/components/NodeIcon.vue | 2 +- web/src/pages/Edit/components/NodeIconSidebar.vue | 2 +- web/src/pages/Edit/components/NodeImage.vue | 2 +- web/src/pages/Edit/components/NodeNote.vue | 2 +- web/src/pages/Edit/components/NodeTag.vue | 2 +- web/src/pages/Edit/components/Style.vue | 4 ++-- web/src/pages/Edit/components/Toolbar.vue | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/src/pages/Edit/components/NodeHyperlink.vue b/web/src/pages/Edit/components/NodeHyperlink.vue index f2002044..0ce20506 100644 --- a/web/src/pages/Edit/components/NodeHyperlink.vue +++ b/web/src/pages/Edit/components/NodeHyperlink.vue @@ -59,7 +59,7 @@ export default { }, methods: { handleNodeActive(...args) { - this.activeNodes = args[1] + this.activeNodes = [...args[1]] if (this.activeNodes.length > 0) { let firstNode = this.activeNodes[0] this.link = firstNode.getData('hyperlink') diff --git a/web/src/pages/Edit/components/NodeIcon.vue b/web/src/pages/Edit/components/NodeIcon.vue index 6cc5e6db..eab91dfb 100644 --- a/web/src/pages/Edit/components/NodeIcon.vue +++ b/web/src/pages/Edit/components/NodeIcon.vue @@ -52,7 +52,7 @@ export default { }, methods: { handleNodeActive(...args) { - this.activeNodes = args[1] + this.activeNodes = [...args[1]] if (this.activeNodes.length > 0) { let firstNode = this.activeNodes[0] this.iconList = firstNode.getData('icon') || [] diff --git a/web/src/pages/Edit/components/NodeIconSidebar.vue b/web/src/pages/Edit/components/NodeIconSidebar.vue index 01e2fbdb..168eb970 100644 --- a/web/src/pages/Edit/components/NodeIconSidebar.vue +++ b/web/src/pages/Edit/components/NodeIconSidebar.vue @@ -92,7 +92,7 @@ export default { }, methods: { handleNodeActive(...args) { - this.activeNodes = args[1] + this.activeNodes = [...args[1]] if (this.activeNodes.length > 0) { let firstNode = this.activeNodes[0] this.nodeImage = firstNode.getData('image') diff --git a/web/src/pages/Edit/components/NodeImage.vue b/web/src/pages/Edit/components/NodeImage.vue index 649e7590..9bd2b8c2 100644 --- a/web/src/pages/Edit/components/NodeImage.vue +++ b/web/src/pages/Edit/components/NodeImage.vue @@ -68,7 +68,7 @@ export default { }, methods: { handleNodeActive(...args) { - this.activeNodes = args[1] + this.activeNodes = [...args[1]] }, handleShowNodeImage() { diff --git a/web/src/pages/Edit/components/NodeNote.vue b/web/src/pages/Edit/components/NodeNote.vue index 6567e139..31e98af2 100644 --- a/web/src/pages/Edit/components/NodeNote.vue +++ b/web/src/pages/Edit/components/NodeNote.vue @@ -52,7 +52,7 @@ export default { }, methods: { handleNodeActive(...args) { - this.activeNodes = args[1] + this.activeNodes = [...args[1]] if (this.activeNodes.length > 0) { let firstNode = this.activeNodes[0] this.note = firstNode.getData('note') diff --git a/web/src/pages/Edit/components/NodeTag.vue b/web/src/pages/Edit/components/NodeTag.vue index 7b7de7a7..ddf8e390 100644 --- a/web/src/pages/Edit/components/NodeTag.vue +++ b/web/src/pages/Edit/components/NodeTag.vue @@ -69,7 +69,7 @@ export default { }, methods: { handleNodeActive(...args) { - this.activeNodes = args[1] + this.activeNodes = [...args[1]] if (this.activeNodes.length > 0) { let firstNode = this.activeNodes[0] this.tagArr = firstNode.getData('tag') || [] diff --git a/web/src/pages/Edit/components/Style.vue b/web/src/pages/Edit/components/Style.vue index e20b2f7f..197728e4 100644 --- a/web/src/pages/Edit/components/Style.vue +++ b/web/src/pages/Edit/components/Style.vue @@ -5,7 +5,7 @@ :class="{ isDark: isDark }" v-if="activeNodes.length > 0" > -