소스 검색

试验保存报错修改

duy 1 년 전
부모
커밋
08b1478eea
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
                         }
                     })