changes
This commit is contained in:
@@ -275,7 +275,7 @@ async function attachFiles(files) {
|
||||
product: isForProduct.value ? product.id : undefined,
|
||||
}));
|
||||
|
||||
const result = await $insertapi(isForProduct.value ? "productfile" : "projectfile", payload);
|
||||
const result = await $insertapi(isForProduct.value ? "productfile" : "projectfile", { data: payload });
|
||||
if (result === "error") {
|
||||
throw new Error("Không thể liên kết tệp");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user