diff --git a/src/front/src/components/news-list-home.vue b/src/front/src/components/news-list-home.vue
index 767d892b9..ad065e243 100644
--- a/src/front/src/components/news-list-home.vue
+++ b/src/front/src/components/news-list-home.vue
@@ -43,7 +43,6 @@
-
@@ -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
+
diff --git a/src/front/src/utils/universal_functions.js b/src/front/src/utils/universal_functions.js
index 1ae80bf81..37e72e828 100644
--- a/src/front/src/utils/universal_functions.js
+++ b/src/front/src/utils/universal_functions.js
@@ -81,7 +81,3 @@ export function pagecounter(){
- export function formatText(text) {
- return text.replaceAll('src="/media/uploads', `src="${baseURL}media/uploads`)
-
- }
\ No newline at end of file