Unified API response json schema (#3170)

### What problem does this PR solve?

Unified API response json schema

### Type of change

- [x] Refactoring
This commit is contained in:
Zhichang Yu
2024-11-05 11:02:31 +08:00
committed by GitHub
parent 339639a9db
commit 185c6a0c71
53 changed files with 1458 additions and 1470 deletions

View File

@ -151,7 +151,7 @@ export const useSendMessage = (
const res = await send(params);
if (receiveMessageError(res)) {
antMessage.error(res?.data?.retmsg);
antMessage.error(res?.data?.message);
// cancel loading
setValue(message.content);
@ -227,7 +227,7 @@ export const useSendNextMessage = () => {
const res = await send(params);
if (receiveMessageError(res)) {
antMessage.error(res?.data?.retmsg);
antMessage.error(res?.data?.message);
// cancel loading
setValue(message.content);