update styles

This commit is contained in:
AceDataCloud committed 2023-12-18 02:02:14 +08:00
1 parent f6b119f34f
commit 80abc61b80
17 files changed
+91 -24

No files matched your search

+24
View File
@@ -45,6 +45,18 @@ const store = createStore({
},
setApplications(state: IState, payload: IApplication[]): void {
state.applications = payload;
},
setMidjourney(state: IState, payload: any): void {
state.apps.midjourney = {
...state.apps.midjourney,
...payload
};
},
setChat(state: IState, payload: any): void {
state.apps.chat = {
...state.apps.chat,
...payload
};
}
},
actions: {
@@ -63,6 +75,12 @@ const store = createStore({
},
setApplications({ commit }: ActionContext<IState, IState>, payload: IApplication[]) {
commit('setApplications', payload);
},
setMidjourney({ commit }: ActionContext<IState, IState>, payload: any) {
commit('setMidjourney', payload);
},
setChat({ commit }: ActionContext<IState, IState>, payload: any) {
commit('setChat', payload);
}
},
getters: {
@@ -80,6 +98,12 @@ const store = createStore({
},
applications(state): IApplication[] | undefined {
return state.applications;
},
midjourney(state): any {
return state.apps.midjourney;
},
chat(state): any {
return state.apps.chat;
}
},
plugins: [createPersistedState()]