From e7ad4f504851eeeb84a96823f57258a282cf21d6 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期四, 23 二月 2023 10:55:28 +0800 Subject: [PATCH] 日志管理使用索引提升查询性能 --- src/components/TreeSelect/index.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/TreeSelect/index.vue b/src/components/TreeSelect/index.vue index bb78fe4..82cafb7 100644 --- a/src/components/TreeSelect/index.vue +++ b/src/components/TreeSelect/index.vue @@ -82,14 +82,14 @@ function initHandle() { nextTick(() => { const selectedValue = valueId.value; - if(selectedValue && selectedValue !== null && typeof (selectedValue) !== "undefined"){ + if(selectedValue !== null && typeof (selectedValue) !== 'undefined') { const node = proxy.$refs.selectTree.getNode(selectedValue) if (node) { valueTitle.value = node.data[props.objMap.label] proxy.$refs.selectTree.setCurrentKey(selectedValue) // 璁剧疆榛樿閫変腑 defaultExpandedKey.value = [selectedValue] // 璁剧疆榛樿灞曞紑 } - }else{ + } else { clearHandle() } }) @@ -140,7 +140,7 @@ font-weight: normal; } -ul li .el-tree .el-tree-node__content { +ul li .el-tree .el-tree-node__content { height: auto; padding: 0 20px; box-sizing: border-box; -- Gitblit v1.9.3