zhaoke 1 gadu atpakaļ
vecāks
revīzija
31f7ed163e
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  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 = []) {