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