vue2-client 1.19.55 → 1.19.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.19.55",
3
+ "version": "1.19.56",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -532,8 +532,8 @@ export default {
532
532
  const fieldName = attr.model
533
533
  const currentValue = this.form[fieldName]
534
534
 
535
- // 如果值为 undefinednull,跳过
536
- if (currentValue === undefined || currentValue === null) {
535
+ // 如果值为 undefinednull、空数组或空字符串,跳过
536
+ if (currentValue === undefined || currentValue === null || (Array.isArray(currentValue) && currentValue.length === 0) || currentValue === '') {
537
537
  return
538
538
  }
539
539