mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-20 05:50:53 +08:00
feat: update toast
This commit is contained in:
@@ -118,6 +118,7 @@ const CommentItem = {
|
||||
}))
|
||||
})
|
||||
showEditor.value = false
|
||||
toast.success('回复成功')
|
||||
} else {
|
||||
toast.error('回复失败')
|
||||
}
|
||||
|
||||
@@ -186,6 +186,7 @@ export default {
|
||||
if (res.ok) {
|
||||
const data = await res.json()
|
||||
comments.value.push(mapComment(data))
|
||||
toast.success('评论成功')
|
||||
} else {
|
||||
toast.error('评论失败')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user