store.ts
471 Bytes
import { useState } from 'react';
import usePagination from "@/hooks/usePagination";
import { get<feewee>替换name</feewee>ListApi } from "./api";
export default function useStore() {
const pagination = usePagination(get<feewee>替换name</feewee>ListApi);
const [open, setOpen] = useState(false);
const [current, setCurrent] = useState<<feewee>替换name</feewee>.ListVO>();
return {
pagination,
open,
setOpen,
current,
setCurrent,
};
}