Răsfoiți Sursa

✅ fix: 修复订单列表页取消订单API路径错误

- 将订单列表页取消订单API调用从  改为
- 统一订单详情页和订单列表页的取消订单API路径为带横杠的

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 1 lună în urmă
părinte
comite
b52afbb9a6
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      mini/src/components/order/OrderButtonBar/index.tsx

+ 1 - 1
mini/src/components/order/OrderButtonBar/index.tsx

@@ -28,7 +28,7 @@ export default function OrderButtonBar({ order, onViewDetail, onCancelOrder }: O
   // 取消订单mutation
   const cancelOrderMutation = useMutation({
     mutationFn: async ({ orderId, reason }: { orderId: number; reason: string }) => {
-      const response = await orderClient.cancelOrder.$post({
+      const response = await orderClient['cancel-order'].$post({
         json: {
           orderId,
           reason