refactor(card-walmart-info): 优化订单状态重置功能
- 修改了 API 调用路径,从 account 状态重置改为 order 状态重置 - 简化了重置状态方法的实现,去除了多余的嵌套
This commit is contained in:
@@ -318,12 +318,10 @@ const generateFormModel = () => {
|
||||
};
|
||||
|
||||
const resetStatus = (orderNo: string) => {
|
||||
apiClient
|
||||
.apiCardInfoWalmartAccountStatusResetPut({ id: orderNo })
|
||||
.then(() => {
|
||||
Message.success('重置成功');
|
||||
search();
|
||||
});
|
||||
apiClient.apiCardInfoWalmartOrderStatusResetPut({ id: orderNo }).then(() => {
|
||||
Message.success('重置成功');
|
||||
search();
|
||||
});
|
||||
};
|
||||
|
||||
const { loading, setLoading } = useLoading(true);
|
||||
|
||||
Reference in New Issue
Block a user