This commit is contained in:
zlwu committed 2026-07-20 10:50:26 +08:00
1 parent 6d9354a194
commit aff71d296b
2759 files changed
+860425 -13211

No files matched your search

+4 -2
View File
@@ -89,8 +89,10 @@ export async function getContract(id: number | string) {
return { data: unwrapData(data) as ContractVO }
}
export function addContract(data: ContractForm) {
return request.post({ url: BASE, data: stringifyBody(data as Record<string, any>) })
export async function addContract(data: ContractForm) {
// request 已解包为 data 本体(合同 id);再包一层与 getContract 一致,供调用方读 res.data
const id = await request.post({ url: BASE, data: stringifyBody(data as Record<string, any>) })
return { data: id }
}
export function updateContract(data: ContractForm) {