This commit is contained in:
iriska-gri committed 2023-10-02 16:58:22 +03:00
1 parent 776f62ecfa
commit 4e111f680f
7 files changed
+41 -17

No files matched your search

+12 -5
View File
@@ -1,8 +1,11 @@
<template>
<v-container class="py-1 newsVH px-0 bg-transparent overflow-auto">
<my-helper
:pretext ="newss"
/>
<v-card
class="mx-auto mb-0 "
v-for="(x, i) in newss" :key= i
v-for="(x, i) in newss.newsqueryset" :key= i
>
<v-img
:src="`${burl}${x.link}`"
@@ -59,13 +62,14 @@
variant="text"
icon="mdi-message-text-outline"
color="teal"
@click="commentadd"
@click="commentShow=!commentShow"
/>
<!-- @click="commentadd" -->
{{ message }}
<v-btn
<!-- <v-btn
:icon="x.show ? 'mdi-chevron-up' : 'mdi-chevron-down'"
@click="x.show = !x.show"
></v-btn>
></v-btn> -->
</v-col>
<v-col class="text-center pr-0">
<v-btn
@@ -88,7 +92,7 @@
</v-expand-transition>
<v-expand-transition>
<div v-show="commentShow">
Тут комменты
<!-- {{ x.commnet.text }} -->
</div>
</v-expand-transition>
</v-card>
@@ -140,10 +144,12 @@ import { ref,computed,watch } from 'vue'
import {useAccountStore} from '@/store/AccountStore'
import {getfromserver} from '@/utils/universal_functions'
import { baseURL } from '@/utils/axios-api'
import myHelper from './UI/my-helper.vue'
const accountStore = useAccountStore()
export default {
components: { myHelper },
setup(){
@@ -194,6 +200,7 @@ export default {
getfromserver("api/navigation/news/", newss)
watch(()=>accountStore.cod2user ,(newValue,oldValue)=>{
if(newValue){
getfromserver("api/navigation/news/",newss)
+1
View File
@@ -4,6 +4,7 @@ import {useAppStore} from '@/store/app'
import { baseURL } from '@/utils/axios-api'
import { axiosApiInstance, clearAxios } from '@/utils/axios-api'
import { useRouter } from 'vue-router'
export function getfromserver(path, reactive){
try{
axiosApiInstance.get(path).then(result => {