Blame view

store.ts 471 Bytes
c9a263f8   王强   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  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,
    };
  }