const itemRefs = ref<HTMLElement[]>([])
const setItemRef = (tagItem: HTMLElement) => {
if (tagItem) {
itemRefs.value.push(tagItem)
}
}
onBeforeUpdate(() => {
itemRefs.value = []
})
onMounted(() => {
widthWrapper.value = (tagWrapper.value).clientWidth
itemRefs.value.forEach((element: HTMLElement, index: number) => {
if (widthItems.value >= widthWrapper.value) return false
widthItems.value += element.clientWidth
if (widthItems.value > widthWrapper.value) {
listTags.value.splice((index))
}
})
})
public function store(RetailProductCreateService $productCreateService, RetailProductCreateRequest $request)
{
$retail = Retail::getRetailStoreIdByCompanyId(50);
try {
$productCreateService->store($retail->id, $request->getDto());
}catch(){}
}
export interface Form {
id: number;
image: string;
gallery: Array<Gallery>;
categoryId: number;
title: string;
metaTitle: string,
metaDescription: string,
description: string;
price: number;
oldPrice: number;
composition: string[];
concurents: Array<Concurent>;
quantity: number;
promocode: string;
isPublished: boolean;
text: string;
settings: Array<Setting>;
}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://site.ru/sitemap.asdasd.xml</loc>
<lastmod>2021-12-15</lastmod>
</url>
<url>
<loc>http://site.ru/sitemap.ekaterinburg.xml</loc>
<lastmod>2021-12-15</lastmod>
</url>
<url>
<loc>http://rzo.test:8000/sitemap.volgograd.xml</loc>
<lastmod>2021-12-15</lastmod>
</url>
<url>
<loc>http://site.ru/sitemap.astraxan.xml</loc>
<lastmod>2021-12-15</lastmod>
</url>
<url>
<loc>http://rzo.test:8000/sitemap.bryansk.xml</loc>
<lastmod>2021-12-15</lastmod>
</url>
<url>
<loc>http://site.ru/sitemap.ufa.xml</loc>
<lastmod>2021-12-15</lastmod>
</url>
<url>
<loc>http://site.ru/sitemap.minsk.xml</loc>
<lastmod>2021-12-15</lastmod>
</url>
<url>
<loc>http://site.ru/sitemap.krasnodar.xml</loc>
<lastmod>2021-12-15</lastmod>
</url>
</urlset>