fix bug
This commit is contained in:
parent
1afb941c4c
commit
9a268f9d7a
2 changed files with 11 additions and 15 deletions
|
|
@ -77,7 +77,7 @@ const currentAddress = reactive<AddressData>({
|
|||
});
|
||||
|
||||
onMounted(async () => {
|
||||
// await getNewData();
|
||||
await getNewData();
|
||||
emit("update:statusEdit", false);
|
||||
});
|
||||
|
||||
|
|
@ -126,13 +126,13 @@ const filterSelector = (val: any, update: Function, refData: string) => {
|
|||
|
||||
const refreshData = async () => {
|
||||
myform.value.reset();
|
||||
await props.fetch();
|
||||
// await props.fetch();
|
||||
await fetchProvince();
|
||||
// await getNewData();
|
||||
await getNewData();
|
||||
};
|
||||
|
||||
const getNewData = async () => {
|
||||
await props.fetch();
|
||||
// await props.fetch();
|
||||
await fetchProvince();
|
||||
};
|
||||
|
||||
|
|
@ -181,9 +181,9 @@ const editData = async () => {
|
|||
.finally(async () => {
|
||||
edit.value = false;
|
||||
emit("update:statusEdit", false);
|
||||
// await getNewData();
|
||||
await props.fetch();
|
||||
await fetchProvince();
|
||||
await getNewData();
|
||||
// await props.fetch();
|
||||
// await fetchProvince();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue