diff --git a/components/LeftContent.vue b/components/LeftContent.vue index 15b735c..fe4453e 100644 --- a/components/LeftContent.vue +++ b/components/LeftContent.vue @@ -62,9 +62,9 @@ label 热门文章 ul li(v-for='(hotArticle, index) in $store.state.hotArticle', :key='index') - .thumbnail + .thumbnail(v-if='hotArticle.postimages[0]') img(width='150', :src="hotArticle.postimages[0].guid + '?x-oss-process=image/resize,m_lfit,h_150,w_150'") - .detail + .detail(:style='hotArticle.postimages[0] ? "margin-left: 70px" : "margin-left: 0"') nuxt-link(:to="'/post/' + hotArticle.ID", :title='hotArticle.post_title') {{ hotArticle.post_title }} .meta {{ hotArticle.post_modified }} .widget.links(v-if="$route.path === '/'")