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
|
@@ -532,8 +532,8 @@ export default {
|
|
|
532
532
|
const fieldName = attr.model
|
|
533
533
|
const currentValue = this.form[fieldName]
|
|
534
534
|
|
|
535
|
-
// 如果值为 undefined
|
|
536
|
-
if (currentValue === undefined || currentValue === null) {
|
|
535
|
+
// 如果值为 undefined、null、空数组或空字符串,跳过
|
|
536
|
+
if (currentValue === undefined || currentValue === null || (Array.isArray(currentValue) && currentValue.length === 0) || currentValue === '') {
|
|
537
537
|
return
|
|
538
538
|
}
|
|
539
539
|
|