fix(api): method fix

This commit is contained in:
2026-02-09 18:23:40 +08:00
parent 3f284d057c
commit 0fea0de600
5 changed files with 44 additions and 44 deletions

View File

@@ -6,7 +6,7 @@ import { Daily } from "./typing"
export const getDailyWorkList = (data: Daily.Request) => {
return httpFetch<Daily.Response>({
url: BASE_LABEL_API + "/api/v1/label_server/daily_work/list",
method: "post",
method: "POST",
body: JSON.stringify(data),
headerAttr: {
["Token"]: usePermissionStore.getState().token,
@@ -18,7 +18,7 @@ export const getDailyWorkList = (data: Daily.Request) => {
export const addDailyWorkData = (data: Daily.CreateProps) => {
return httpFetch({
url: BASE_LABEL_API + "/api/v1/label_server/daily_work/add",
method: "post",
method: "POST",
body: JSON.stringify(data),
headerAttr: {
["Token"]: usePermissionStore.getState().token,