Browse Source

Merge branch 'master' of http://120.26.64.82:10880/BFFE/dz2.1

chenrui  1 năm trước cách đây
mục cha
commit
b64ebc44cb
1 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 6 4
      src/components/publicPageForm/index.vue

+ 6 - 4
src/components/publicPageForm/index.vue

@@ -269,7 +269,7 @@ export default {
           const nameterCi = Object.entries(datacontent.filter)[0]
           const namekeyCi = dropdownlist + nameterCi[0] + nameterCi[1]
           if (namekeyItem == namekeyCi) {
-            this.tableOptions[pagecode] = returnData
+            this.tableOptions[pagecode] = _.cloneDeep(returnData)
           }
         })
       })
@@ -319,9 +319,11 @@ export default {
         const pubKeyStr = sessionStorage.getItem('pubKeyStr')
         if (!pubKeyStr) return
         ndata.map(({ pagecode }) => {
-          const jse = new JSEncrypt()
-          jse.setPublicKey(pubKeyStr)
-          this.tableForm[pagecode] = jse.encrypt(this.tableForm[pagecode].replace(/\s+/g, ""))
+          if (this.tableForm[pagecode]) {
+            const jse = new JSEncrypt()
+            jse.setPublicKey(pubKeyStr)
+            this.tableForm[pagecode] = jse.encrypt(this.tableForm[pagecode].replace(/\s+/g, ""))
+          }
         })
       }
     },