You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
324 B
12 lines
324 B
import { create } from "zustand";
|
|
|
|
interface AppState {
|
|
/** 示例:侧栏折叠 */
|
|
sidebarCollapsed: boolean;
|
|
setSidebarCollapsed: (v: boolean) => void;
|
|
}
|
|
|
|
export const useAppStore = create<AppState>((set) => ({
|
|
sidebarCollapsed: false,
|
|
setSidebarCollapsed: (v) => set({ sidebarCollapsed: v }),
|
|
}));
|
|
|