fix: replace some pictures of chunk method #437 (#438)

### What problem does this PR solve?

some chunk method pictures are not in English #437

feat: set the height of both html and body to 100%
feat: add SharedChat
feat: add shared hooks

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-04-18 19:27:53 +08:00
committed by GitHub
parent fe2f5205fc
commit 1dada69daa
26 changed files with 1336 additions and 733 deletions

View File

@@ -158,7 +158,7 @@ const model: DvaModel<ChatModelState> = {
}
return data;
},
*completeConversation({ payload }, { call, put }) {
*completeConversation({ payload }, { call }) {
const { data } = yield call(chatService.completeConversation, payload);
// if (data.retcode === 0) {
// yield put({
@@ -192,7 +192,7 @@ const model: DvaModel<ChatModelState> = {
});
message.success(i18n.t('message.created'));
}
return data.retcode;
return data;
},
*listToken({ payload }, { call, put }) {
const { data } = yield call(chatService.listToken, payload);
@@ -232,13 +232,13 @@ const model: DvaModel<ChatModelState> = {
chatService.createExternalConversation,
payload,
);
if (data.retcode === 0) {
yield put({
type: 'getExternalConversation',
payload: { conversation_id: payload.conversationId },
});
}
return data.retcode;
// if (data.retcode === 0) {
// yield put({
// type: 'getExternalConversation',
// payload: data.data.id,
// });
// }
return data;
},
*getExternalConversation({ payload }, { call }) {
const { data } = yield call(
@@ -246,7 +246,7 @@ const model: DvaModel<ChatModelState> = {
null,
payload,
);
return data.retcode;
return data;
},
*completeExternalConversation({ payload }, { call }) {
const { data } = yield call(