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

Merge pull request !243 from 风狗/dev
This commit is contained in:
芋道源码 2023-09-19 17:11:34 +00:00 committed by Gitee
commit f63d518d0d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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