Новости на главной

This commit is contained in:
iriska-gri committed 2023-11-29 11:34:57 +03:00
1 parent 615b0917ea
commit e0bf00ee9d
2 files changed
+3 -10

No files matched your search

+3 -6
View File
@@ -43,7 +43,6 @@
<v-card-text class="pb-0">
<div v-html=limitText(x.text)>
</div>
<!-- {{limitText(x.text)}} -->
</v-card-text>
<div class="pt-1 pl-1 pb-2">
@@ -71,7 +70,7 @@ import myHelper from './UI/my-helper.vue'
import { axiosApiInstance } from '@/utils/axios-api'
import { format } from 'date-fns'
import { useRoute } from 'vue-router'
import {formatText} from '@/utils/universal_functions'
const accountStore = useAccountStore()
export default {
@@ -153,9 +152,7 @@ export default {
text = text.replaceAll('src="/media/uploads', `src="${baseURL}media/uploads`)
const t = text.split(' ').slice(0, 25)
console.log(t, 'ttttttttttttttttttttttttttt');
// return t
// const t = text.split(' ').slice(0, 25)
return `${text.split(' ').slice(0, 25).join(' ')} ${t.length<25?'':'...'}`
}
@@ -187,7 +184,7 @@ export default {
page,
selecnews,
route,
formatText
@@ -81,7 +81,3 @@ export function pagecounter(){
export function formatText(text) {
return text.replaceAll('src="/media/uploads', `src="${baseURL}media/uploads`)
}