mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-05 01:17:35 +08:00
feat: 发布rate 明确指引
This commit is contained in:
@@ -240,6 +240,8 @@ export default {
|
|||||||
if (data.id) {
|
if (data.id) {
|
||||||
window.location.href = `/posts/${data.id}`
|
window.location.href = `/posts/${data.id}`
|
||||||
}
|
}
|
||||||
|
} else if (res.status === 429) {
|
||||||
|
toast.error('发布过于频繁,请稍后再试')
|
||||||
} else {
|
} else {
|
||||||
toast.error(data.error || '发布失败')
|
toast.error(data.error || '发布失败')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -379,6 +379,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
toast.success('评论成功')
|
toast.success('评论成功')
|
||||||
}
|
}
|
||||||
|
} else if (res.status === 429) {
|
||||||
|
toast.error('评论过于频繁,请稍后再试')
|
||||||
} else {
|
} else {
|
||||||
toast.error('评论失败')
|
toast.error('评论失败')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user