Sfoglia il codice sorgente

判断基础类型是否相同

1178232204@qq.com 3 anni fa
parent
commit
b9006a0ab9
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/components/knowledgeExtra/AddNewRule.vue

+ 3 - 1
src/components/knowledgeExtra/AddNewRule.vue

@@ -358,7 +358,9 @@ export default {
               ) || [];
           if (arr[i - 1] && arr[i - 1].groupId == item.groupId) {
             this.$set(item, 'disabled', false);
-            if (del.length > 0) {
+            console.log(item);
+            
+            if (del.length > 0 && item.subType == types[2]) {
               const delType = del[0].split('-');
               const types = del[0].split('-');
               let baseTypeList = JSON.parse(JSON.stringify(this.baseTypeList));