mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-30 10:28:42 +00:00
perf: app list (#2747)
This commit is contained in:
@@ -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) => {
|
||||
|
Reference in New Issue
Block a user