Sfoglia il codice sorgente

试验保存报错修改

duy 1 anno fa
parent
commit
08b1478eea
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/views/tentative/detect/test-form.vue

+ 1 - 1
src/views/tentative/detect/test-form.vue

@@ -1184,7 +1184,7 @@ const tableFormSaveClick = async () => {
                     // eslint-disable-next-line array-callback-return
                     FormData = FormData.filter((ele) => {
                         // eslint-disable-next-line eqeqeq
-                        if (ele.type == listItemBaseData.value.tableType ) {
+                        if (ele.type == listItemBaseData.value.tableType || Object.hasOwnProperty.call(ele, 'type') ) {
                             return ele
                         }
                     })