fix: comment rick
This commit is contained in:
@@ -446,11 +446,18 @@ const submitMainComment = async () => {
|
||||
|
||||
try {
|
||||
sending.value = true;
|
||||
await props.publishHandler({
|
||||
const res = await props.publishHandler({
|
||||
content,
|
||||
mode: "comment",
|
||||
replyTarget: null,
|
||||
});
|
||||
if(res?.success === false) {
|
||||
uni.showToast({
|
||||
title: res?.message || '发布失败',
|
||||
icon: 'none'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (props.showSuccessToast) {
|
||||
uni.showToast({ title: props.mainSuccessText, icon: "none" });
|
||||
}
|
||||
@@ -493,11 +500,18 @@ const submitReplyComment = async () => {
|
||||
|
||||
try {
|
||||
sendingReply.value = true;
|
||||
await props.publishHandler({
|
||||
const res = await props.publishHandler({
|
||||
content,
|
||||
mode: "reply",
|
||||
replyTarget: replyTarget.value,
|
||||
});
|
||||
if(res?.success === false) {
|
||||
uni.showToast({
|
||||
title: res?.message || '回复失败',
|
||||
icon: 'none'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (props.showSuccessToast) {
|
||||
uni.showToast({ title: props.replySuccessText, icon: "none" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user