bug fixed

This commit is contained in:
cxc
2022-10-31 17:45:39 +08:00
parent fd5e278fa7
commit d2163317fe
31 changed files with 1946 additions and 443 deletions

View File

@ -156,19 +156,20 @@ const validateForm = async () => {
return false;
}
};
// watch(modelValue, (val) => {
// console.log(val);
// });
getProvinceList();
watch(modelValue, (val) => {
if (val.province) {
getCityListByProvinceId(val.province);
}
if (val.city) {
getAreaListByCityId(val.city);
}
});
watch(
modelValue,
(val) => {
if (val.province) {
getCityListByProvinceId(val.province);
}
if (val.city) {
getAreaListByCityId(val.city);
}
},
{ deep: true }
);
defineExpose({
validateForm,