Browse Source

fix: 组件库分组编辑查重优化

组件库分组编辑查重优化
hong.yang 1 year ago
parent
commit
f815fdfbcd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      data-room-ui/packages/ComponentList/CatalogEditForm.vue

+ 1 - 0
data-room-ui/packages/ComponentList/CatalogEditForm.vue

@@ -154,6 +154,7 @@ export default {
     // 检验分组名称是否重复
     // 检验分组名称是否重复
     const validateName = (rule, value, callback) => {
     const validateName = (rule, value, callback) => {
       this.$dataRoomAxios.post('/bigScreen/type/nameRepeat', {
       this.$dataRoomAxios.post('/bigScreen/type/nameRepeat', {
+        id: this.currentCatalog.id,
         name: value,
         name: value,
         type: this.catalogType
         type: this.catalogType
       }, true).then((r) => {
       }, true).then((r) => {