@@ -327,8 +327,10 @@ export const orderApi = {
|
||||
* Call guide: supply the parameters below, await the returned Promise, and handle loading / error UI in the caller.
|
||||
* @param orderId: IdType caller-supplied value for `orderId: IdType`
|
||||
*/
|
||||
cancelOrder: (orderId: IdType) => {
|
||||
return api.put(`/order/cancel/${orderId}`)
|
||||
cancelOrder: (orderId: IdType, cancelReason?: string) => {
|
||||
return api.put(`/order/cancel/${orderId}`, undefined, {
|
||||
params: cancelReason ? { cancelReason } : undefined
|
||||
})
|
||||
},
|
||||
|
||||
// 后台获取所有订单
|
||||
|
||||
Reference in New Issue
Block a user