修复了行政地区切换验证状态没更新的问题

This commit is contained in:
mengkai 2024-10-14 11:26:26 +08:00
parent 8d4df4b66e
commit 001f9c3f30

View File

@ -237,8 +237,10 @@ export default {
},
//
changeTree(array, val) {
val.cityCode == "null" ? (val.cityCode = "") : val.cityCode;
this.$set(this, "formValidate", val);
const cloneVal = JSON.parse(JSON.stringify(val))
cloneVal.cityCode == "null" ? (cloneVal.cityCode = "") : cloneVal.cityCode;
this.$set(this, "formValidate", cloneVal);
this.$refs.formValidate.resetFields()
},
//
loadData(item, callback) {