fix: comment rick
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user