Optimize the auth flow (#68)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
033cbc082c
commit
85aef535f6
23 files changed
+215
-245
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { IApplication, IChatConversation, IChatModel, ICredential, IService, Status } from '@/models';
|
||||
|
||||
export interface IChatState {
|
||||
model: IChatModel;
|
||||
model: IChatModel | undefined;
|
||||
application: IApplication | undefined;
|
||||
service: IService | undefined;
|
||||
conversations: IChatConversation[] | undefined;
|
||||
|
||||
@@ -4,6 +4,9 @@ import { IChatState } from './models';
|
||||
export const resetAll = (state: IChatState): void => {
|
||||
state.application = undefined;
|
||||
state.conversations = undefined;
|
||||
state.credential = undefined;
|
||||
state.service = undefined;
|
||||
state.model = undefined;
|
||||
};
|
||||
|
||||
export const setModel = (state: IChatState, payload: IChatModel): void => {
|
||||
|
||||
Reference in new issue
Block a user