🐛 fix response structure

This commit is contained in:
landaiqing
2024-11-22 00:57:38 +08:00
parent 5a05e87f49
commit 28031c2d35
10 changed files with 20 additions and 14 deletions

View File

@@ -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,

View File

@@ -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)"

View File

@@ -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,

View File

@@ -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>

View File

@@ -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,