perf: app list (#2747)

This commit is contained in:
Finley Ge
2024-09-20 10:16:27 +08:00
committed by shilin66
parent 398845dce2
commit 2da79b9b38
5 changed files with 30 additions and 10 deletions

View File

@@ -41,12 +41,20 @@ type State = {
reRankModelList: ReRankModelItemType[];
whisperModel?: WhisperModelType;
initStaticData: (e: InitDateResponse) => void;
appType?: string;
setAppType: (e?: string) => void;
};
export const useSystemStore = create<State>()(
devtools(
persist(
immer((set, get) => ({
appType: undefined,
setAppType(e) {
set((state) => {
state.appType = e;
});
},
initd: false,
setInitd() {
set((state) => {