From 1acb2169d78d74e347bdfc2e962a88e6cb585bb7 Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期五, 30 十月 2020 14:22:34 +0800 Subject: [PATCH] 修复数据栈文件删除列表仍有遗留的bug --- src/components/canvas/Dialog.vue | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/components/canvas/Dialog.vue b/src/components/canvas/Dialog.vue index 8d66184..f56437b 100644 --- a/src/components/canvas/Dialog.vue +++ b/src/components/canvas/Dialog.vue @@ -1269,7 +1269,10 @@ this.lineIndex = this.canvasData.line.length; this.rectIndex = this.canvasData.rect.length; this.arrowIndex = this.canvasData.arrow.length; - this.polygonIndex = this.canvasData.polygon.length; + //鎺掗櫎this.canvasData.polygon鍏ㄩ儴鍖哄煙(鍏ㄩ儴鍖哄煙鐨刬d灏辨槸鎽勫儚鏈虹殑id) + + let filterPolygonArr = this.canvasData.polygon.filter(item=>item.id != this.TreeDataPool.selectedNode.id) + this.polygonIndex = filterPolygonArr.length; }, // 鐢熸垚uuid getUuid() { -- Gitblit v1.8.0