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

This commit is contained in:
RuoYi 2020-06-03 17:59:32 +08:00
parent 5123832cd7
commit c861b78f80

View File

@ -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) {