From 3a2c4f13d1554d4e97463abebf085117b3f1e28f Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期三, 28 四月 2021 10:24:56 +0800 Subject: [PATCH] 调整应用图标 --- src/Pool/TreeData.ts | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/Pool/TreeData.ts b/src/Pool/TreeData.ts index 6984c74..0289f6c 100644 --- a/src/Pool/TreeData.ts +++ b/src/Pool/TreeData.ts @@ -282,7 +282,7 @@ // vue-js-tree 榛樿灞曞紑,鎺у埗閮ㄥ垎鎶樺彔. z-tree 榛樿鎶樺彔, 鎺у埗閮ㄥ垎灞曞紑 if (this.foldNodeList[n.id]) { if (this.zTree) { - n.open = true + n.open = false } else { n.opened = false } @@ -326,6 +326,9 @@ node.forEach(n => { if (n.children && n.children.length > 0) { + if (this.zTree) { + n.open = true + } this.sortTreeData(n.children) } }) -- Gitblit v1.8.0