订单详情页面 请求详情接口改为真实携带的id
This commit is contained in:
parent
1be57ea8d3
commit
245301452c
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user