Commit c2ce35226edcbd97de74ef205368702901c819b4
Merge branch 'fix/DEFECT-1846' into 'main_dev'
fix: 修复枚举值重复后,删除重复枚举值后未进行校验 See merge request yunteng/thingskit-front!1146
Showing
1 changed file
with
4 additions
and
1 deletions
... | ... | @@ -76,7 +76,10 @@ |
76 | 76 | const handleDeleteEnums = (item: EnumElItemType) => { |
77 | 77 | const index = unref(enumsListElRef).findIndex((temp) => item.uuid === temp.uuid); |
78 | 78 | |
79 | - ~index && enumsListElRef.value.splice(index, 1); | |
79 | + if (~index) { | |
80 | + enumsListElRef.value.splice(index, 1); | |
81 | + validateSameEnum(); | |
82 | + } | |
80 | 83 | }; |
81 | 84 | |
82 | 85 | const handleAddEnums = () => { | ... | ... |