feat: update toast

This commit is contained in:
tim
2025-07-06 22:00:01 +08:00
parent 65251309bd
commit ea02dce045
2 changed files with 2 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ const CommentItem = {
}))
})
showEditor.value = false
toast.success('回复成功')
} else {
toast.error('回复失败')
}

View File

@@ -186,6 +186,7 @@ export default {
if (res.ok) {
const data = await res.json()
comments.value.push(mapComment(data))
toast.success('评论成功')
} else {
toast.error('评论失败')
}