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

Merge pull request !40 from 孟锴/feature/mengkai-master-branch
This commit is contained in:
Yer11214 2024-10-14 07:34:03 +00:00 committed by Gitee
commit b1acfbdd4b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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