🐛 fix response structure
This commit is contained in:
@@ -171,7 +171,7 @@ async function commentSubmit(point: any) {
|
||||
key: comment.slideCaptchaData.key,
|
||||
};
|
||||
const result: any = await commentSubmitApi(commentParams);
|
||||
if (result.code === 200 && result.success) {
|
||||
if (result.code === 200) {
|
||||
const tmpData: any = {
|
||||
user_id: user.user.uid,
|
||||
content: result.data.content,
|
||||
|
@@ -98,7 +98,9 @@
|
||||
:disabled="item.reply_count === 0"
|
||||
v-show="item.reply_count > 0"
|
||||
class="reply-action-btn">
|
||||
查看{{ item.reply_count >= 99 ? '99+' : item.reply_count }}条回复
|
||||
{{ t('comment.view') }}{{
|
||||
item.reply_count >= 99 ? '99+' : item.reply_count
|
||||
}}{{ t("comment.replies") }}
|
||||
</AButton>
|
||||
<AButton
|
||||
@click="comment.handleShowReplyInput(item.id)"
|
||||
|
@@ -186,7 +186,7 @@ async function replySubmit(point: any) {
|
||||
key: comment.slideCaptchaData.key,
|
||||
};
|
||||
const result: any = await replySubmitApi(replyParams);
|
||||
if (result.code === 200 && result.success) {
|
||||
if (result.code === 200) {
|
||||
const tmpData: any = {
|
||||
id: result.data.id,
|
||||
content: result.data.content,
|
||||
|
@@ -31,7 +31,7 @@
|
||||
<UserInfoCard :user="child" :padding="0"/>
|
||||
</template>
|
||||
<span
|
||||
class="reply-at">@{{ child.reply_username }}</span>
|
||||
class="reply-at">@{{ child.reply_nickname }}</span>
|
||||
</Popover>
|
||||
<a-tag color="cyan" class="reply-tag-child" size="small">Lv.5</a-tag>
|
||||
</AFlex>
|
||||
|
@@ -189,7 +189,7 @@ async function replyReplySubmit(point: any) {
|
||||
key: comment.slideCaptchaData.key,
|
||||
};
|
||||
const result: any = await replyReplySubmitApi(replyParams);
|
||||
if (result.code === 200 && result.success) {
|
||||
if (result.code === 200) {
|
||||
const tmpData: any = {
|
||||
id: result.data.id,
|
||||
content: result.data.content,
|
||||
|
Reference in New Issue
Block a user