fix: comment rick

This commit is contained in:
zzc
2026-06-22 15:48:20 +08:00
parent a47b0e2a7a
commit d1d4481ff5
2 changed files with 24 additions and 4 deletions

View File

@@ -371,13 +371,19 @@ const handleSendComment = async (payload) => {
try {
isSendingComment.value = true;
uni.showLoading({ title: '发送中...' });
await publishTopicComment({
const res = await publishTopicComment({
content: payload.content,
mode: 'comment',
replyTarget: null
});
uni.hideLoading();
if(res?.success === false) {
uni.showToast({
title: res?.message || '发送失败',
icon: 'none'
});
return;
}
handleCommentPublished({
mode: 'comment',
content: payload.content,