feat: 发布rate 明确指引

This commit is contained in:
Tim
2025-07-29 18:39:23 +08:00
parent 74433b507d
commit 1f18c2b000
2 changed files with 4 additions and 0 deletions

View File

@@ -240,6 +240,8 @@ export default {
if (data.id) {
window.location.href = `/posts/${data.id}`
}
} else if (res.status === 429) {
toast.error('发布过于频繁,请稍后再试')
} else {
toast.error(data.error || '发布失败')
}

View File

@@ -379,6 +379,8 @@ export default {
} else {
toast.success('评论成功')
}
} else if (res.status === 429) {
toast.error('评论过于频繁,请稍后再试')
} else {
toast.error('评论失败')
}