FPSMS-frontend
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

22 行
512 B

  1. import { serverFetchJson } from "@/app/utils/fetchUtil";
  2. import { BASE_API_URL } from "@/config/api";
  3. import { cache } from "react";
  4. export interface DoResult {
  5. id: number,
  6. code: string,
  7. orderDate: string,
  8. estimatedArrivalDate: string,
  9. status: string,
  10. shopName: string,
  11. }
  12. export const preloadDo = () => {
  13. fetchDoList();
  14. }
  15. export const fetchDoList = cache(async () => {
  16. return serverFetchJson<DoResult[]>(`${BASE_API_URL}/do/list`, {
  17. next: { tags: ["doList"] }
  18. })
  19. })