zhaoke vor 1 Jahr
Ursprung
Commit
97ae5018ea
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/components/publicPageForm/index.vue

+ 2 - 2
src/components/publicPageForm/index.vue

@@ -209,7 +209,7 @@ export default {
           item.dropdownlistid = item.pageconfigurationid
           item.dropdownlistlabel = item.pagename
         })
-        this.tableOptions['passparameters'] = this.formPass
+        this.tableOptions['passparameters'] = this.formPass.length ? this.formPass : ''
       }
       this.loading = false
     },
@@ -250,7 +250,7 @@ export default {
     formatPass (npass = []) {
       const datas = []
       const maps = []
-      if (npass?.length) {
+      if (Array.isArray(npass) && npass?.length) {
         this.formPass.filter(item => {
           npass.map(p => {
             if (item.dropdownlistid == p) {