Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed May 2, 2024
2 parents d828927 + 332763d commit 661ad0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions backend/database/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ func (m *MongoDBManager) GetMaxPostID() (int, error) {
options.FindOne().SetSort(bson.M{"id": -1}),
).Decode(&post)
if err != nil {
if err == mongo.ErrNoDocuments {
return 0, nil
}
return 0, err
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/auth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<v-card-text>
<p>请给墙号(QQ: 2297454588)发送</p>
<p><strong>#注册</strong></p>
<p><strong>#注册账号</strong></p>
<p>来获得初始密码。</p>
</v-card-text>

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@
</template>

<template v-slot:default="{ isActive }">
<v-card title="😉 投稿礼仪">
<v-card title="😉 投稿规则">

<v-card-text>
<p v-for="(rule, index) in $store.state.metadata.post_rules" :key="index">{{ index }}. {{ rule }}</p>
<p v-for="(rule, index) in $store.state.metadata.post_rules" :key="index">{{ index + 1 }}. {{ rule }}</p>
</v-card-text>

<v-card-actions>
Expand Down

0 comments on commit 661ad0f

Please sign in to comment.