fix:空评论检测不生效

This commit is contained in:
hanyixuanten
2026-07-04 14:40:18 +08:00
parent 1790d59fa2
commit 80ce1ba9eb
+1 -1
View File
@@ -199,7 +199,7 @@ export default {
}, },
async SendReply(evt) { async SendReply(evt) {
this.replymode = false this.replymode = false
if (evt.detail.content === 0) { if (evt.detail.content.length === 0) {
return prompt.showToast({ return prompt.showToast({
message: "评论内容不得为空!", message: "评论内容不得为空!",
duration: 2000 duration: 2000