Browse Source

修改form

zhaoke 1 year ago
parent
commit
97ae5018ea
1 changed files with 2 additions and 2 deletions
  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) {