提交
This commit is contained in:
1 parent
6d9354a194
commit
aff71d296b
2759 files changed
+860425
-13211
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user