Browse Source

修改表单

zhaoke 1 năm trước cách đây
mục cha
commit
31f7ed163e
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/components/publicPageForm/index.vue

+ 5 - 1
src/components/publicPageForm/index.vue

@@ -221,7 +221,11 @@ export default {
           allResultList.push(params)
         }
       })
-      this.reduceHttp(allResultList, formItem)
+      if (allResultList?.length) {
+        this.reduceHttp(allResultList, formItemCopy)
+      } else {
+        this.formItemArr = formItemCopy
+      }
     },
     //获取异步数据
     async getAnscyData (allResultKey = [], allResult = [], formItem = [], columnArrs1 = [], columnArrs2 = []) {