Sfoglia il codice sorgente

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

RuoYi 5 anni fa
parent
commit
2440771462
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  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 {
25 25
   },
26 26
   methods: {
27 27
     filterIcons() {
28
+      this.iconList = icons
28 29
       if (this.name) {
29 30
         this.iconList = this.iconList.filter(item => item.includes(this.name))
30
-      } else {
31
-        this.iconList = icons
32 31
       }
33 32
     },
34 33
     selectedIcon(name) {