diff --git a/src/views/mall/trade/order/detail/index.vue b/src/views/mall/trade/order/detail/index.vue index 40f2a664..e92fa82c 100644 --- a/src/views/mall/trade/order/detail/index.vue +++ b/src/views/mall/trade/order/detail/index.vue @@ -245,9 +245,9 @@ const { params } = useRoute() // 查询参数 const getDetail = async () => { const id = params.orderId as unknown as number if (id) { - const res = (await TradeOrderApi.getOrder(66666)) as TradeOrderApi.OrderVO + const res = (await TradeOrderApi.getOrder(id)) as TradeOrderApi.OrderVO // 没有表单信息则关闭页面返回 - if (res == null) { + if (res === null) { message.error('交易订单不存在') close() }