作者 RuoYi

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

@@ -25,10 +25,9 @@ export default { @@ -25,10 +25,9 @@ export default {
25 }, 25 },
26 methods: { 26 methods: {
27 filterIcons() { 27 filterIcons() {
  28 + this.iconList = icons
28 if (this.name) { 29 if (this.name) {
29 this.iconList = this.iconList.filter(item => item.includes(this.name)) 30 this.iconList = this.iconList.filter(item => item.includes(this.name))
30 - } else {  
31 - this.iconList = icons  
32 } 31 }
33 }, 32 },
34 selectedIcon(name) { 33 selectedIcon(name) {