From 876ecf21c713ce333e676f9b81c57de4ecc983d3 Mon Sep 17 00:00:00 2001 From: fungleo <web@fengcms.com> Date: 星期二, 04 八月 2020 14:11:02 +0800 Subject: [PATCH] 优化构建树形数据JS方法 --- ruoyi-ui/src/components/IconSelect/index.vue | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/components/IconSelect/index.vue b/ruoyi-ui/src/components/IconSelect/index.vue index ea4c1b6..a7512b2 100644 --- a/ruoyi-ui/src/components/IconSelect/index.vue +++ b/ruoyi-ui/src/components/IconSelect/index.vue @@ -25,10 +25,9 @@ }, methods: { filterIcons() { + this.iconList = icons if (this.name) { this.iconList = this.iconList.filter(item => item.includes(this.name)) - } else { - this.iconList = icons } }, selectedIcon(name) { -- Gitblit v1.9.2