配合后端修正baseURL

This commit is contained in:
Tankaikai
2025-03-10 16:16:36 +08:00
parent 9ff72bc8d5
commit d6e90a188a
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ const Api = {
}, },
onOff(id: number | string) { onOff(id: number | string) {
return request<any>({ return request<any>({
url: `${baseURL}/on-off/`, url: `${baseURL}/onOff/`,
method: "post", method: "post",
}); });
}, },

View File

@@ -44,7 +44,7 @@ const AuthAPI = {
// 上下架 // 上下架
onOff(data: any) { onOff(data: any) {
return request<any, Responseres>({ return request<any, Responseres>({
url: `${baseURL}/on-off`, url: `${baseURL}/onOff`,
method: "post", method: "post",
data, data,
}); });
@@ -371,4 +371,4 @@ export interface SkuList {
*/ */
weight: null; weight: null;
[property: string]: any; [property: string]: any;
} }