Przeglądaj źródła

判断基础类型是否相同

1178232204@qq.com 3 lat temu
rodzic
commit
b9006a0ab9
1 zmienionych plików z 3 dodań i 1 usunięć
  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));