From e5d2c712322ef89b1bb10c40447fe3175ec73d20 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 14 Aug 2020 14:33:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E5=B9=B3=E5=8F=B0=20?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E5=9C=B0=E5=9B=BE=E5=88=97=E8=A1=A8=20?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=B1=95=E5=BC=80=E4=BB=A3=E7=A0=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trainingPlatform/demonList.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/trainingPlatform/demonList.vue b/src/views/trainingPlatform/demonList.vue index faadefe7e..ef518c5f6 100644 --- a/src/views/trainingPlatform/demonList.vue +++ b/src/views/trainingPlatform/demonList.vue @@ -155,7 +155,7 @@ export default { }, forTree(item) { item.children && item.children.forEach(childrenItem => { - childrenItem.key = childrenItem.id + childrenItem.type; + childrenItem.key = item.id + childrenItem.id + childrenItem.type; if (childrenItem.children && childrenItem.children.length) { this.forTree(childrenItem); } @@ -207,13 +207,13 @@ export default { }); }, nodeExpand(obj, node, ele) { - const key = obj.id + obj.type; + const key = obj.key; this.expandList = this.expandList.filter(item => item !== key); this.expandList.push(key); localStore.set('trainIngPlatformExpandList' + this.filterSelect + this.userId + this.project, this.expandList); }, nodeCollapse(obj, node, ele) { - const key = obj.id + obj.type; + const key = obj.key; this.expandList = this.expandList.filter(item => item !== key); localStore.set('trainIngPlatformExpandList' + this.filterSelect + this.userId + this.project, this.expandList); },