|
@@ -13,8 +13,9 @@
|
|
:key="index"
|
|
:key="index"
|
|
:index="(listState.pageSize * (listState.pageNum - 1)) + index + 1"
|
|
:index="(listState.pageSize * (listState.pageNum - 1)) + index + 1"
|
|
:article="item"
|
|
:article="item"
|
|
- @onClick="toDetail(item)"
|
|
|
|
- />
|
|
|
|
|
|
+ @onClick="toDetail(item)">
|
|
|
|
+ <span slot="right-time">{{ dateFromNow(item.l_lastpushtime * 1000) }}</span>
|
|
|
|
+ </article-item>
|
|
<empty v-show="showEmpty">
|
|
<empty v-show="showEmpty">
|
|
<div class="flex-c-c center">
|
|
<div class="flex-c-c center">
|
|
<span>您还没有关注的项目</span>
|
|
<span>您还没有关注的项目</span>
|
|
@@ -41,6 +42,7 @@
|
|
import { Pagination, Card, Button } from 'element-ui'
|
|
import { Pagination, Card, Button } from 'element-ui'
|
|
import Empty from '@/components/common/Empty.vue'
|
|
import Empty from '@/components/common/Empty.vue'
|
|
import ArticleItem from '@/components/article-item/ArticleItem.vue'
|
|
import ArticleItem from '@/components/article-item/ArticleItem.vue'
|
|
|
|
+import { dateFromNow } from '@/utils/'
|
|
import { getFollowProjectList, setFollowRemove30Day } from '@/api/modules/'
|
|
import { getFollowProjectList, setFollowRemove30Day } from '@/api/modules/'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -92,6 +94,7 @@ export default {
|
|
this.doQuery()
|
|
this.doQuery()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ dateFromNow,
|
|
goManage () {
|
|
goManage () {
|
|
setFollowRemove30Day().then(res => {
|
|
setFollowRemove30Day().then(res => {
|
|
if (res && res.error_code === 0) {
|
|
if (res && res.error_code === 0) {
|
|
@@ -158,8 +161,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
toDetail (item) {
|
|
toDetail (item) {
|
|
- const { _id } = item
|
|
|
|
- window.open(`/article/content/${_id}.html`)
|
|
|
|
|
|
+ const { sid } = item
|
|
|
|
+ window.open(`/article/content/${sid}.html`)
|
|
},
|
|
},
|
|
onPageChange (p) {
|
|
onPageChange (p) {
|
|
this.listState.pageNum = p
|
|
this.listState.pageNum = p
|