fix: 分店同步更新

This commit is contained in:
GaoHao
2025-04-08 16:13:33 +08:00
parent 6b5290d355
commit 684a83b0db
2 changed files with 22 additions and 11 deletions

View File

@@ -10,23 +10,26 @@ const ShopBranchApi = {
params
});
},
getDataSync(params: any) {
return request<any>({
url: `${baseURL}/get/dataSyncMethod`,
method: "get",
params
});
},
setDataSync(id: any) {
console.log(id)
return request<any>({
url: `${baseURL}/setting/dataSyncMethod?dataSyncMethod=${id}`,
method: "post",
});
},
dataSync(id: any) {
console.log(id)
return request<any>({
url: `${baseURL}/data/sync/enable?branchShopId=${id}`,
method: "post",
});
},
enable(id: any) {
console.log(id)
return request<any>({
url: `${baseURL}/account/enable?branchShopId=${id}`,
method: "post",