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

(cherry picked from commit 245301452c)
pull/253/head
绮梦 2023-09-19 13:57:26 +08:00 committed by shizhong
parent 96a96b1a5d
commit 8d06ee2b39
1 changed files with 2 additions and 2 deletions

View File

@ -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()
}