Добавлена дата добавления новости
This commit is contained in:
1 parent
6ca56c6408
commit
7b9aae8687
1 file changed
+9
-4
@@ -101,7 +101,7 @@
|
|||||||
</v-row>
|
</v-row>
|
||||||
<v-divider/>
|
<v-divider/>
|
||||||
<v-row class="flex-grow-0 ma-0">
|
<v-row class="flex-grow-0 ma-0">
|
||||||
<v-col>
|
<v-col class="d-flex justify-space-between">
|
||||||
<v-btn
|
<v-btn
|
||||||
color="more_details_btn"
|
color="more_details_btn"
|
||||||
variant="text"
|
variant="text"
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
>
|
>
|
||||||
Подробнее
|
Подробнее
|
||||||
</v-btn>
|
</v-btn>
|
||||||
{{news.cdate}}
|
<span class="text-body-2 align-self-center">{{formatDate(news.cdate)}}</span>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
@@ -123,7 +123,7 @@ import { baseURL } from '@/utils/axios-api'
|
|||||||
import {useAccountStore} from '@/store/AccountStore'
|
import {useAccountStore} from '@/store/AccountStore'
|
||||||
import { axiosApiInstance } from '@/utils/axios-api'
|
import { axiosApiInstance } from '@/utils/axios-api'
|
||||||
import {splitname} from '@/utils/universal_functions'
|
import {splitname} from '@/utils/universal_functions'
|
||||||
|
import moment from 'moment'
|
||||||
|
|
||||||
const accountStore = useAccountStore()
|
const accountStore = useAccountStore()
|
||||||
|
|
||||||
@@ -165,13 +165,18 @@ export default {
|
|||||||
emit('openOneImg')
|
emit('openOneImg')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function formatDate(date) {
|
||||||
|
return moment(date).format('DD-MM-YYYY')
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
accountStore,
|
accountStore,
|
||||||
burl,
|
burl,
|
||||||
limitText,
|
limitText,
|
||||||
splitname,
|
splitname,
|
||||||
toggleIncrementLike,
|
toggleIncrementLike,
|
||||||
openOneImg
|
openOneImg,
|
||||||
|
formatDate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user