finish refine vuex for chat

This commit is contained in:
AceDataCloud committed 2023-12-30 16:33:16 +08:00
1 parent cd5dbaa264
commit 6ab318e3f0
9 files changed
+73 -56

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import { IApplication } from '@/operators';
import { IApplication, IChatConversation } from '@/operators';
import { IChatState } from './models';
import { Status } from '../common/models';
@@ -10,7 +10,7 @@ export const setGetApplicationsStatus = (state: IChatState, payload: Status): vo
state.getApplicationsStatus = payload;
};
export const setConversations = (state: IChatState, payload: any): void => {
export const setConversations = (state: IChatState, payload: IChatConversation[]): void => {
state.conversations = payload;
};