zustand 切片模式使用,persist 中间件持久化状态
zustand - npm 安装 npm i zustand 创建切片目录: 创建切片 channelStore.js import { getChannelsAPI } from "/apis/article"; const channelStore (set) > {return {channelList: [],fetchChannelList: async () > {const res await getChanne…
2025-12-14