src/menu/menushell/index.jsx
@@ -53,7 +53,7 @@ } confirm({ title: `确定删除《${card.setting.name}》吗?`, title: `确定删除《${card.name}》吗?`, content: hasComponent ? '当前组件中含有子组件!' : '', onOk() { handleList({...menu, components: cards.filter(item => item.uuid !== card.uuid)}) @@ -91,7 +91,7 @@ while (!name && names[item.component]) { let _name = names[item.component] + i if (menu.components.filter(com => com.setting && com.setting.name === _name).length === 0) { if (menu.components.filter(com => com.name === _name).length === 0) { name = _name } i++