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

21 行
427 B

  1. "use server"
  2. import { serverFetchJson } from "@/app/utils/fetchUtil";
  3. import { BASE_API_URL } from "@/config/api";
  4. import { cache } from "react";
  5. export interface comboProp {
  6. id: any;
  7. label: string;
  8. }
  9. export interface combo {
  10. records: comboProp[];
  11. }
  12. export const fetchSkillCombo = cache(async () => {
  13. return serverFetchJson<combo>(`${BASE_API_URL}/skill/combo`, {
  14. next: { tags: ["skill"] },
  15. });
  16. });