feat(VnLocation): onCityCreated refresh provinces
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
97d4a755e9
commit
3a64929c05
|
@ -45,6 +45,7 @@ function onDataSaved(formData) {
|
|||
}
|
||||
|
||||
async function onCityCreated(newTown, formData) {
|
||||
await provincesFetchDataRef.value.fetch();
|
||||
newTown.province = provincesOptions.value.find(
|
||||
(province) => province.id === newTown.provinceFk
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue