Update application structure (#224)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2025-07-19 12:08:26 +08:00
1 parent d49b7e6f6c
commit 9ae4229256
135 files changed
+2849 -2324

No files matched your search

+9
View File
@@ -145,10 +145,12 @@ export const login = async ({ state, commit }: ActionContext<IRootState, IRootSt
flow: 'popup',
visible: true
});
console.debug('login popup');
} else {
commit('setAuth', {
flow: 'redirect'
});
console.debug('login redirect');
loginRedirect({ redirect: window.location.pathname, site });
}
};
@@ -158,7 +160,14 @@ export const logout = async ({ dispatch }: ActionContext<IRootState, IRootState>
await dispatch('chat/resetAll');
await dispatch('midjourney/resetAll');
await dispatch('chatdoc/resetAll');
await dispatch('flux/resetAll');
await dispatch('hailuo/resetAll');
await dispatch('headshots/resetAll');
await dispatch('kling/resetAll');
await dispatch('luma/resetAll');
await dispatch('pika/resetAll');
await dispatch('qrart/resetAll');
await dispatch('suno/resetAll');
await dispatch('login');
};
+3 -1
View File
@@ -31,7 +31,7 @@ export interface ICommonState {
| undefined;
}
export interface IRootState extends ICommonState {
export interface IAppState {
midjourney: IMidjourneyState;
chat: IChatState;
chatdoc: IChatdocState;
@@ -44,3 +44,5 @@ export interface IRootState extends ICommonState {
headshots: IHeadshotsState;
suno: ISunoState;
}
export interface IRootState extends ICommonState, IAppState {}