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