changes
This commit is contained in:
@@ -81,7 +81,7 @@ async function submit() {
|
||||
id: productVariant.value.product,
|
||||
...body.value,
|
||||
})
|
||||
: await $insertapi("product", body.value);
|
||||
: await $insertapi("product", { data: body.value });
|
||||
if (res !== "error") {
|
||||
if (refreshData) refreshData();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user