This commit is contained in:
Viet An
2026-07-03 09:24:05 +07:00
parent f519573c19
commit 4404c4654b
22 changed files with 59 additions and 39 deletions

View File

@@ -19,7 +19,7 @@ async function submitAddress() {
customer: props.customerId,
};
const res = props.address
? await $patchapi("Customer_Address", payload)
? await $patchapi("Customer_Address", { data: payload })
: await $insertapi("Customer_Address", { data: payload });
isLoading.value = false;
emit("modalevent", { name: "submit" });