fix: disable sending messages if both application and conversation are empty and add loading to all pages (#134)
* feat: add loading to all pages * fix: disable sending messages if both application and conversation are empty * feat: add chatSpin class to Spin of chat
This commit is contained in:
@@ -34,7 +34,7 @@ const model: DvaModel<KSModelState> = {
|
||||
const { data } = yield call(kbService.createKb, payload);
|
||||
const { retcode } = data;
|
||||
if (retcode === 0) {
|
||||
message.success('Created successfully!');
|
||||
message.success('Created!');
|
||||
}
|
||||
return data;
|
||||
},
|
||||
@@ -43,7 +43,7 @@ const model: DvaModel<KSModelState> = {
|
||||
const { retcode } = data;
|
||||
if (retcode === 0) {
|
||||
yield put({ type: 'getKbDetail', payload: { kb_id: payload.kb_id } });
|
||||
message.success('Updated successfully!');
|
||||
message.success('Updated!');
|
||||
}
|
||||
},
|
||||
*getKbDetail({ payload = {} }, { call, put }) {
|
||||
|
||||
Reference in New Issue
Block a user