Галерея распознование

This commit is contained in:
iriska-gri committed 2023-11-29 17:16:50 +03:00
1 parent c23cf63f6d
commit 89dc66cccc
1 file changed
+15 -9
+15 -9
View File
@@ -181,12 +181,7 @@
<v-card-title class="pt-0 pb-1"> <v-card-title class="pt-0 pb-1">
{{x.title}} {{x.title}}
</v-card-title> </v-card-title>
<v-switch
v-model="gallery"
></v-switch>
<v-img <v-img
:src="`${burl}${x.link}`" :src="`${burl}${x.link}`"
@@ -434,11 +429,22 @@ export default {
getfromserver(str, newss) getfromserver(str, newss)
const loadNews = (path) => {
axiosApiInstance.get(path).then(result => {
newss.value= result.data
if (newss.value.result[0].gallery.length > 0) {
gallery.value = true
}
})
}
loadNews(str)
const imgGallery = () => {
console.log(newss.value, 'ku');
}
const toggleIncrementLike = (news, scores) => { const toggleIncrementLike = (news, scores) => {
axiosApiInstance.post(`api/navigation/news/`, {news: news, scores: scores}).then(result => { axiosApiInstance.post(`api/navigation/news/`, {news: news, scores: scores}).then(result => {