@dhccmobile/vue3-lo-form 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  动态表单-支持Vue3.0版-PC端-插件
5
5
 
6
6
  ### 更新日志
7
+ - 2.1.2
8
+ 修改2.1.1版本的发现的缺陷 2026年5月18日 09:29:36
7
9
  - 2.1.1
8
10
  修改2.1.0版本的发现的缺陷 2026年5月16日 15:58:23
9
11
  - 2.1.0
@@ -7469,10 +7469,11 @@ class FormApi_FormApi {
7469
7469
  }
7470
7470
  }
7471
7471
  // 追加表单中没有的字段 2026年5月13日 20:39:24 用于处理字段脱敏
7472
- if (this.srcData) {
7472
+ if (this.srcData && obj) {
7473
7473
  for (const key in this.srcData) {
7474
+ // 把所有以Enc结尾的字段都追加到obj中,用于处理字段脱敏
7474
7475
  // eslint-disable-next-line no-prototype-builtins
7475
- if (obj && !obj.hasOwnProperty(key)) {
7476
+ if (key.endsWith("Enc") && !obj.hasOwnProperty(key)) {
7476
7477
  obj[key] = this.srcData[key];
7477
7478
  }
7478
7479
  }