changes
This commit is contained in:
@@ -27,16 +27,14 @@ const productVariant = ref();
|
||||
onMounted(async () => {
|
||||
// if props.variant (edit), fetch data to fill in body
|
||||
if (props.variantId) {
|
||||
const variant = await $getdata(
|
||||
"Product_Variant",
|
||||
undefined,
|
||||
{
|
||||
const variant = await $getdata("Product_Variant", {
|
||||
first: true,
|
||||
params: {
|
||||
filter: { id: props.variantId },
|
||||
values:
|
||||
"id,code,product,product__name,product__os,product__manufacturer,product__battery,product__screen,product__cpu,product__gpu,product__camera_system,product__sim,product__network_technology,product__charging_technology,product__external_storage,product__ip_rating,product__design,color,color__code,color__name,color__hex_code,ram,ram__code,ram__capacity,internal_storage,internal_storage__code,internal_storage__capacity,image,image__path,price,note,create_time,update_time",
|
||||
},
|
||||
true,
|
||||
);
|
||||
});
|
||||
|
||||
productVariant.value = variant;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user