fix:空评论检测不生效
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user