From 1fe97251df5b6280105e9d1635241a5bb63973fe Mon Sep 17 00:00:00 2001 From: danshihao Date: Wed, 11 Sep 2024 12:01:49 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=8B=86=E5=88=86=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=A0=91=E8=8A=82=E7=82=B9=E6=8E=92=E5=BA=8F]=20=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E5=90=8E=E4=BF=9D=E7=95=99=E4=B8=8A=E6=AC=A1=E5=B1=95?= =?UTF-8?q?=E5=BC=80=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../documentSplit/modules/SplitTreeOrderModal.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/documentTool/documentSplit/modules/SplitTreeOrderModal.vue b/src/views/documentTool/documentSplit/modules/SplitTreeOrderModal.vue index c084c33..00fbbde 100644 --- a/src/views/documentTool/documentSplit/modules/SplitTreeOrderModal.vue +++ b/src/views/documentTool/documentSplit/modules/SplitTreeOrderModal.vue @@ -231,7 +231,9 @@ export default { const treeData = res.result || [] treeData.forEach(node => this.addTitleToNodes(node)) this.treeData = treeData - this.expandedKeys = this.treeData.length > 0 ? [this.treeData[0].id] : [] + if (this.treeData.length > 0 && this.expandedKeys <= 0) { + this.expandedKeys = [this.treeData[0].id] + } } }).finally(() => { this.confirmLoading = false @@ -249,6 +251,7 @@ export default { this.$emit('close') this.model = {} this.treeData = [] + this.expandedKeys = [] this.visible = false }, handleCancel () {