diff --git a/packages/localLife/UserComment/index.vue b/packages/localLife/UserComment/index.vue index ce03f632..59c9a53b 100644 --- a/packages/localLife/UserComment/index.vue +++ b/packages/localLife/UserComment/index.vue @@ -129,6 +129,14 @@ export default { sendComment() { // 这里添加发送评论的逻辑 console.log('发送评论'); + if (!this.reply_content) { + uni.showToast({ + title: "请输入评论内容", + icon: "none", + duration: 2000 + }) + return + } let that = this request(apiArr.createUserReply, "POST", { evaluation_id: that.info.id,