refactor: 前端登录/权限/界面状态迁移至 zustand
This commit is contained in:
26
apps/admin/src/store/index.ts
Normal file
26
apps/admin/src/store/index.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* 全局状态统一出口。
|
||||
* 业务代码从这里或对应 Store 文件导入,避免散落的局部状态管理。
|
||||
*/
|
||||
export { useAppStore } from './app/appStore';
|
||||
export { usePermissionStore } from './permission/permissionStore';
|
||||
export { useSettingsStore } from './settings/settingsStore';
|
||||
export { useUserStore } from './user/userStore';
|
||||
|
||||
export type { AppActions, AppPersistedState, AppState, AppStore, DockTab } from './app/appTypes';
|
||||
export type {
|
||||
PermissionActions,
|
||||
PermissionPersistedState,
|
||||
PermissionState,
|
||||
PermissionStatus,
|
||||
PermissionStore,
|
||||
} from './permission/permissionTypes';
|
||||
export type { AiChatSettings, SettingsActions, SettingsState, SettingsStore } from './settings/settingsTypes';
|
||||
export type { StoreStatus } from './types';
|
||||
export type {
|
||||
UserActions,
|
||||
UserInfo,
|
||||
UserPersistedState,
|
||||
UserState,
|
||||
UserStore,
|
||||
} from './user/userTypes';
|
||||
Reference in New Issue
Block a user