Explorar el Código

字典项删除BUG

汪钰 hace 3 años
padre
commit
039a69ed8d
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      src/views/system/dictionary/components/dict-edit.vue

+ 6 - 0
src/views/system/dictionary/components/dict-edit.vue

@@ -391,6 +391,12 @@
             });
             return;
           }
+          this.form.dictStaticSubmitPOList.forEach((item, index) => {
+            if (item.delectId) {
+              delete item.delectId;
+            }
+          });
+
           this.loading = true;
           const saveOrUpdate = this.isUpdate ? updateDictionary : addDictionary;
           saveOrUpdate(this.form)