Skip to content

Commit 34a38a9

Browse files
committed
文章首图修改
1 parent b5c9bfa commit 34a38a9

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

blog-api/src/main/java/com/rawchen/model/vo/BlogInfo.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class BlogInfo {
2828
private Boolean top;//是否置顶
2929
private String password;//文章密码
3030
private Boolean privacy;//是否私密文章
31+
private String firstPicture;//首图
3132

3233
private Category category;//文章分类
3334
private List<Tag> tags = new ArrayList<>();//文章标签

blog-api/src/main/resources/mapper/BlogMapper.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
<result property="views" column="views"/>
105105
<result property="top" column="is_top"/>
106106
<result property="password" column="password"/>
107+
<result property="firstPicture" column="first_picture"/>
107108
<association property="category" javaType="com.rawchen.entity.Category">
108109
<result property="name" column="category_name"/>
109110
</association>

blog-view/src/components/blog/BlogItem.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
</div>
77
<div class="ui middle aligned mobile reversed stackable">
88
<div class="ui grid m-margin-lr">
9+
10+
<span >{{ item.firstPicture }}</span>
11+
912
<!--标题-->
1013
<div class="row m-padded-tb-small">
1114
<h2 class="ui header m-center m-scaleup">

0 commit comments

Comments
 (0)