|
|
|
@ -410,7 +410,9 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="right"> |
|
|
|
|
<!-- 选择了“列表样式”,不用显示右侧部分 --> |
|
|
|
|
<div v-if="info.listStyleId !== 73" |
|
|
|
|
class="right"> |
|
|
|
|
<p class="l-title">{{ $t('column.hot') }}</p> |
|
|
|
|
<ul class="list"> |
|
|
|
|
<li v-for="(item, i) in hots" |
|
|
|
@ -467,7 +469,7 @@ export default { |
|
|
|
|
sameStyle: 1, |
|
|
|
|
allColumnId: [], |
|
|
|
|
showNav: false, |
|
|
|
|
showNavIds: [10, 11, 12, 16, 55, 68], // 显示侧导航的模板id |
|
|
|
|
showNavIds: [10, 11, 12, 16, 55, 68, 73], // 显示侧导航的模板id |
|
|
|
|
isFilter: false, |
|
|
|
|
page: 1, |
|
|
|
|
pageSize: 10, |
|
|
|
@ -774,9 +776,8 @@ export default { |
|
|
|
|
}) |
|
|
|
|
this.articles = articles |
|
|
|
|
this.total = +data.total; |
|
|
|
|
// 如果栏目那勾选了“只有一篇文章时,以详情方式展示”,并且只有一篇文章,则直接展示详情 |
|
|
|
|
// this.total == 1 && this.info.showWithDetails && this.$router.push(`/article?articleId=${this.articles[0].id}&id=${this.articles[0].columnId}`) |
|
|
|
|
if (this.total == 1) { |
|
|
|
|
if (this.total) { |
|
|
|
|
this.$post(`${this.api.findArticle}?id=${articles[0].id}`).then(async ({ data }) => { |
|
|
|
|
this.article = data |
|
|
|
|
console.log("🚀 ~ file: index.vue:778 ~ .then ~ this.article:", this.article) |
|
|
|
|