feat: Add Skeleton to MessageItem before the backend returns a message and fixed the issue where ChatConfigurationModal displays old data when creating a new dialog (#99)
* feat: fixed the issue where ChatConfigurationModal displays old data when creating a new dialog * feat: Add Skeleton to MessageItem before the backend returns a message
This commit is contained in:
@@ -140,14 +140,15 @@ const model: DvaModel<ChatModelState> = {
|
||||
},
|
||||
*completeConversation({ payload }, { call, put }) {
|
||||
const { data } = yield call(chatService.completeConversation, payload);
|
||||
if (data.retcode === 0) {
|
||||
yield put({
|
||||
type: 'getConversation',
|
||||
payload: {
|
||||
conversation_id: payload.conversation_id,
|
||||
},
|
||||
});
|
||||
}
|
||||
// if (data.retcode === 0) {
|
||||
// yield put({
|
||||
// type: 'getConversation',
|
||||
// payload: {
|
||||
// conversation_id: payload.conversation_id,
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
return data.retcode;
|
||||
},
|
||||
*removeConversation({ payload }, { call, put }) {
|
||||
const { data } = yield call(chatService.removeConversation, {
|
||||
|
||||
Reference in New Issue
Block a user