Skip to content

Commit 04c6cc8

Browse files
authored
Merge pull request #9 from yyyCode/dev
2 parents fd4d992 + bf401d8 commit 04c6cc8

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

OpenBlog-business/src/main/java/com/yqz/openblog/forum/entity/ForumTopic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public class ForumTopic {
3535
private Long authorId;
3636

3737
@Column(nullable = false)
38-
private Long viewCount;
38+
private Long viewCount = 0L;
3939

4040
@Column(nullable = false)
41-
private Long commentCount;
41+
private Long commentCount = 0L;
4242

4343
@Column(nullable = false)
4444
@TableField(fill = FieldFill.INSERT)

vue/src/App.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ onMounted(async () => {
5656
<footer v-if="!isConsole" class="site-footer">
5757
<div class="site-footer-inner">
5858
<span>{{ (siteConfig && siteConfig.footer_copyright) || '© 2026 OpenBlog' }}</span>
59+
<span class="site-footer-sep">|</span>
60+
<a class="site-footer-icp" href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">粤ICP备2026033788号</a>
5961
</div>
6062
</footer>
6163
</div>

vue/src/assets/blog.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3261,6 +3261,20 @@ body {
32613261
color: var(--muted);
32623262
}
32633263

3264+
.site-footer-sep {
3265+
margin: 0 8px;
3266+
color: var(--border, #ccc);
3267+
}
3268+
3269+
.site-footer-icp {
3270+
color: var(--muted);
3271+
text-decoration: none;
3272+
}
3273+
3274+
.site-footer-icp:hover {
3275+
color: var(--accent, #4a90d9);
3276+
}
3277+
32643278
[data-theme='dark'] .site-footer {
32653279
border-top-color: var(--border-dark, #334155);
32663280
}

0 commit comments

Comments
 (0)