Compare commits

...

2 Commits

Author SHA1 Message Date
qiuchenfan cfeaf27b4e Merge branch 'main' of http://113.45.67.59:3003/qiuchenfan/news 2025-11-21 11:40:55 +08:00
qiuchenfan fa9eeb360e store 2025-11-21 11:40:52 +08:00
1 changed files with 11 additions and 0 deletions

11
app/store/newsStore.ts Normal file
View File

@ -0,0 +1,11 @@
import { create } from "zustand";
type NewsStore = {
news: any;
setNews: (news: any) => void;
};
const newsStore = create<NewsStore>((set,get) => ({
news: [],
setNews: (news: any) => set({ news }),
}));