From a8ce60f33e24322de0048a40a38363704332a595 Mon Sep 17 00:00:00 2001 From: fan Date: Mon, 27 Jun 2022 13:08:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E7=B3=BB=E7=BB=9F=E6=A0=8F=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trainingPlatform/demonList.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/trainingPlatform/demonList.vue b/src/views/trainingPlatform/demonList.vue index 27ed99d3e..989c293f5 100644 --- a/src/views/trainingPlatform/demonList.vue +++ b/src/views/trainingPlatform/demonList.vue @@ -87,6 +87,7 @@ export default { return data.name.includes(value); }, clickEvent(obj, data, ele, isReplace = false) { + console.log(obj, data, ele, 'clickEvent'); if (ele) { if ( ele.expanded) { ele.expanded = false; @@ -177,7 +178,7 @@ export default { this.treeList = []; res.data.forEach(item => { const childList = []; - item && item.children && item.children.forEach(elem => { + item && item.children && item.children.length > 3 && item.children.forEach(elem => { if (elem.id === 'Lesson') { childList[0] = elem; } else if (elem.id === 'Exam') { @@ -219,6 +220,7 @@ export default { }, /* 根据localstorage缓存的trainingPlatformCheckId跳转右侧显示页面 */ findTree(treeList, checkId, data) { + console.log(treeList, '--------'); treeList && treeList.length && treeList.forEach(item =>{ if (item.type === 'Map') { data = item;