diff --git a/src/resources/plugins/TsForm/TsFormCheckbox.vue b/src/resources/plugins/TsForm/TsFormCheckbox.vue index 7de82df51821ab156377fc8a94261a421dd2482d..85218f422c3a4803789ab99f7f9fba9c6b961dcc 100755 --- a/src/resources/plugins/TsForm/TsFormCheckbox.vue +++ b/src/resources/plugins/TsForm/TsFormCheckbox.vue @@ -261,7 +261,8 @@ export default { }, watch: { value(newValue, oldValue) { - if (JSON.stringify(newValue) != JSON.stringify(this.currentValue)) { + let isSame = this.$utils.isSame(this.handleCurrentValue(newValue), this.currentValue); + if (!isSame) { this.currentValue = this.handleCurrentValue(this.$utils.deepClone(newValue)) || []; this.validMesage = ''; this.setSelectList(); diff --git a/src/resources/plugins/TsForm/TsFormRadio.vue b/src/resources/plugins/TsForm/TsFormRadio.vue index 35690053c09c1b4210d39f1947f91524356e5669..896b8d2f6993f118184dc22b71c4b618b2c26349 100755 --- a/src/resources/plugins/TsForm/TsFormRadio.vue +++ b/src/resources/plugins/TsForm/TsFormRadio.vue @@ -259,7 +259,8 @@ export default { }, watch: { value(newValue, oldValue) { - if (newValue != this.currentValue) { + let isSame = this.$utils.isSame(this.handleCurrentValue(newValue), this.currentValue); + if (!isSame) { this.currentValue = this.handleCurrentValue(newValue); this.validMesage = ''; this.setSelectList(); diff --git a/src/resources/plugins/TsForm/TsFormSelect.vue b/src/resources/plugins/TsForm/TsFormSelect.vue index 8d2b8346cadf78d45f5be86971841e466c93451e..9a452014c3d1e3e3f6018199357222f14e5dcdb0 100755 --- a/src/resources/plugins/TsForm/TsFormSelect.vue +++ b/src/resources/plugins/TsForm/TsFormSelect.vue @@ -1450,7 +1450,7 @@ export default { watch: { value: { handler(newValue, oldValue) { - let isSame = this.$utils.isSame(newValue, this.currentValue); + let isSame = this.$utils.isSame(this.handleCurrentValue(newValue), this.currentValue); // if ((this.multiple && JSON.stringify(newValue) == JSON.stringify(this.currentValue)) || (!this.multiple && newValue === this.currentValue)) { // isSame = true; // }