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

This commit is contained in:
iriska-gri committed 2023-11-29 17:16:50 +03:00
1 parent c23cf63f6d
commit 89dc66cccc
1 file changed
+14 -8
+14 -8
View File
@@ -181,11 +181,6 @@
<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
@@ -434,12 +429,23 @@ export default {
getfromserver(str, newss) getfromserver(str, newss)
const loadNews = (path) => {
axiosApiInstance.get(path).then(result => {
newss.value= result.data
const imgGallery = () => { if (newss.value.result[0].gallery.length > 0) {
console.log(newss.value, 'ku'); gallery.value = true
} }
})
}
loadNews(str)
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 => {