refactor(card-walmart-info): 优化订单状态重置功能

- 修改了 API 调用路径,从 account 状态重置改为 order 状态重置
- 简化了重置状态方法的实现,去除了多余的嵌套
This commit is contained in:
danial
2025-03-30 16:29:44 +08:00
parent 89e6efb95d
commit 72e30c9dab

View File

@@ -318,9 +318,7 @@ const generateFormModel = () => {
};
const resetStatus = (orderNo: string) => {
apiClient
.apiCardInfoWalmartAccountStatusResetPut({ id: orderNo })
.then(() => {
apiClient.apiCardInfoWalmartOrderStatusResetPut({ id: orderNo }).then(() => {
Message.success('重置成功');
search();
});