zhaoke преди 1 година
родител
ревизия
31f7ed163e
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  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 = []) {