Commit 24530145 by 绮梦

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

parent 1be57ea8
...@@ -245,9 +245,9 @@ const { params } = useRoute() // 查询参数 ...@@ -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()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment