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 = []) {