|
@@ -238,6 +238,11 @@ const submitComment = async (content?: string) => {
|
|
|
if (isReply) {
|
|
|
// 回复评论,被回复人用户ID =
|
|
|
params.replyToUserid = isReply.commentUserId;
|
|
|
+ if (content) {
|
|
|
+ params.commentContent = encodeURI(
|
|
|
+ `回复“${isReply.commentUserName}”:${content}`
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
const result: any = await http.addReportComment(params);
|
|
|
if (result.msg == "success") {
|
|
@@ -247,9 +252,7 @@ const submitComment = async (content?: string) => {
|
|
|
});
|
|
|
await initCommentList();
|
|
|
// 清空输入框
|
|
|
- if (!content) {
|
|
|
- commentInput.value = "";
|
|
|
- }
|
|
|
+ commentInput.value = "";
|
|
|
} else {
|
|
|
showToast({
|
|
|
message: "评论失败,请稍后重试!",
|