配合后端修正baseURL
This commit is contained in:
@@ -53,7 +53,7 @@ const Api = {
|
||||
},
|
||||
onOff(id: number | string) {
|
||||
return request<any>({
|
||||
url: `${baseURL}/on-off/`,
|
||||
url: `${baseURL}/onOff/`,
|
||||
method: "post",
|
||||
});
|
||||
},
|
||||
|
||||
@@ -44,7 +44,7 @@ const AuthAPI = {
|
||||
// 上下架
|
||||
onOff(data: any) {
|
||||
return request<any, Responseres>({
|
||||
url: `${baseURL}/on-off`,
|
||||
url: `${baseURL}/onOff`,
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
@@ -371,4 +371,4 @@ export interface SkuList {
|
||||
*/
|
||||
weight: null;
|
||||
[property: string]: any;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user