订单详情页面 请求详情接口改为真实携带的id

This commit is contained in:
绮梦 2023-09-19 13:57:26 +08:00
parent 1be57ea8d3
commit 245301452c

View File

@ -245,9 +245,9 @@ const { params } = useRoute() // 查询参数
const getDetail = async () => { const getDetail = async () => {
const id = params.orderId as unknown as number const id = params.orderId as unknown as number
if (id) { 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('交易订单不存在') message.error('交易订单不存在')
close() close()
} }