финишный вариант интерцептора
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
productsData
|
||||
<pre>
|
||||
{{ productsData }}
|
||||
{{ productsData?.images?.filter(img => img?.src?.includes(colorVariants.blackCottonPolyester)) }}
|
||||
</pre>
|
||||
</div>
|
||||
</template>
|
||||
@@ -11,4 +10,11 @@
|
||||
import { useGetProductsDetail } from '~/api/queries'
|
||||
|
||||
const { data: productsData } = useGetProductsDetail(79)
|
||||
|
||||
const colorVariants = {
|
||||
beigeCottonPolyester: 'beige_cotton-polyester_',
|
||||
blackCotton: 'black_cotton_',
|
||||
greyCottonPolyester: 'grey_cotton-polyester_',
|
||||
blackCottonPolyester: 'black_cotton-polyester_',
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user