Commit c861b78f authored by RuoYi's avatar RuoYi

修复菜单管理选择图标,backspace删除时不过滤数据

parent 5123832c
...@@ -25,10 +25,9 @@ export default { ...@@ -25,10 +25,9 @@ export default {
}, },
methods: { methods: {
filterIcons() { filterIcons() {
this.iconList = icons
if (this.name) { if (this.name) {
this.iconList = this.iconList.filter(item => item.includes(this.name)) this.iconList = this.iconList.filter(item => item.includes(this.name))
} else {
this.iconList = icons
} }
}, },
selectedIcon(name) { selectedIcon(name) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment