Kaynağa Gözat

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

RuoYi 4 yıl önce
ebeveyn
işleme
c861b78f80
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      ruoyi-ui/src/components/IconSelect/index.vue

+ 1 - 2
ruoyi-ui/src/components/IconSelect/index.vue

@@ -25,10 +25,9 @@ export default {
   },
   methods: {
     filterIcons() {
+      this.iconList = icons
       if (this.name) {
         this.iconList = this.iconList.filter(item => item.includes(this.name))
-      } else {
-        this.iconList = icons
       }
     },
     selectedIcon(name) {