Jelajahi Sumber

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

RuoYi 4 tahun lalu
induk
melakukan
c861b78f80
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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) {