Browse Source

修改表单

zhaoke 1 year ago
parent
commit
31f7ed163e
1 changed files with 5 additions and 1 deletions
  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 = []) {