[代码完善](v2.5): v2.5 修复菜单管理选择图标,backspace删除时不过滤数据

This commit is contained in:
ZhengJie
2020-06-03 18:07:28 +08:00
parent 2bc9e6b582
commit 68bfa0df74

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