Compare commits
3 Commits
0779b31402
...
027ff5192b
| Author | SHA1 | Date | |
|---|---|---|---|
| 027ff5192b | |||
| 857cec4290 | |||
| 67436089a9 |
@ -265,9 +265,12 @@ const FALLBACK: OrderDetail = {
|
|||||||
async function load() {
|
async function load() {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
try {
|
try {
|
||||||
// 端点 /sys/openapi/order/info?id= 后端 400, 用 fallback (老 vue 用 /order/info/{id} 同 400, 显示 fallback)
|
const resp: any = await httpGet('/sys/openapi/order/info', { orderId: orderId.value })
|
||||||
await new Promise(r => setTimeout(r, 200))
|
if (resp && resp.orderId) {
|
||||||
|
detail.value = { ...FALLBACK, ...resp, id: resp.id || orderId.value, orderCode: resp.orderId }
|
||||||
|
} else {
|
||||||
detail.value = { ...FALLBACK, id: orderId.value, orderCode: orderId.value }
|
detail.value = { ...FALLBACK, id: orderId.value, orderCode: orderId.value }
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
detail.value = { ...FALLBACK, id: orderId.value, orderCode: orderId.value }
|
detail.value = { ...FALLBACK, id: orderId.value, orderCode: orderId.value }
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user