Przeglądaj źródła

🐛 fix(order-detail): 修复订单详情页API调用语法错误

- 将orderClient[':id'].$get()改为orderClient[':id']['$get']()以符合正确的属性访问语法
yourname 4 tygodni temu
rodzic
commit
f160048016
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      mini/src/pages/order-detail/index.tsx

+ 1 - 1
mini/src/pages/order-detail/index.tsx

@@ -42,7 +42,7 @@ export default function OrderDetailPage() {
     queryFn: async () => {
       // 如果提供了订单ID,直接通过ID查询
       if (orderId > 0) {
-        const response = await orderClient[':id'].$get({
+        const response = await orderClient[':id']['$get']({
           param: { id: orderId }
         })
         if (response.status !== 200) {