mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-04 05:56:08 +00:00
error track
This commit is contained in:
@@ -6,6 +6,8 @@ import axios from 'axios';
|
||||
type LoginStoreType = { provider: 'git'; lastRoute: string };
|
||||
|
||||
type State = {
|
||||
lastRoute: string;
|
||||
setLastRoute: (e: string) => void;
|
||||
loginStore?: LoginStoreType;
|
||||
setLoginStore: (e: LoginStoreType) => void;
|
||||
loading: boolean;
|
||||
@@ -22,6 +24,12 @@ export const useGlobalStore = create<State>()(
|
||||
devtools(
|
||||
persist(
|
||||
immer((set, get) => ({
|
||||
lastRoute: '/app/list',
|
||||
setLastRoute(e) {
|
||||
set((state) => {
|
||||
state.lastRoute = e;
|
||||
});
|
||||
},
|
||||
loginStore: undefined,
|
||||
setLoginStore(e) {
|
||||
set((state) => {
|
||||
|
Reference in New Issue
Block a user