Новости на главной
This commit is contained in:
1 parent
615b0917ea
commit
e0bf00ee9d
2 files changed
+3
-10
No files matched your search
@@ -43,7 +43,6 @@
|
|||||||
<v-card-text class="pb-0">
|
<v-card-text class="pb-0">
|
||||||
<div v-html=limitText(x.text)>
|
<div v-html=limitText(x.text)>
|
||||||
</div>
|
</div>
|
||||||
<!-- {{limitText(x.text)}} -->
|
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
||||||
<div class="pt-1 pl-1 pb-2">
|
<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 { axiosApiInstance } from '@/utils/axios-api'
|
||||||
import { format } from 'date-fns'
|
import { format } from 'date-fns'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import {formatText} from '@/utils/universal_functions'
|
|
||||||
const accountStore = useAccountStore()
|
const accountStore = useAccountStore()
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -153,9 +152,7 @@ export default {
|
|||||||
|
|
||||||
text = text.replaceAll('src="/media/uploads', `src="${baseURL}media/uploads`)
|
text = text.replaceAll('src="/media/uploads', `src="${baseURL}media/uploads`)
|
||||||
const t = text.split(' ').slice(0, 25)
|
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?'':'...'}`
|
return `${text.split(' ').slice(0, 25).join(' ')} ${t.length<25?'':'...'}`
|
||||||
}
|
}
|
||||||
@@ -187,7 +184,7 @@ export default {
|
|||||||
page,
|
page,
|
||||||
selecnews,
|
selecnews,
|
||||||
route,
|
route,
|
||||||
formatText
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,3 @@ export function pagecounter(){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
export function formatText(text) {
|
|
||||||
return text.replaceAll('src="/media/uploads', `src="${baseURL}media/uploads`)
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user