fix(avatar): clear stale checkout context and closed orders
This commit is contained in:
@@ -260,9 +260,9 @@ const pollPayment = async () => {
|
||||
void loadData()
|
||||
return
|
||||
}
|
||||
if (order.status === 'failed') {
|
||||
if (order.status === 'failed' || order.status === 'closed') {
|
||||
paymentNoticeTone.value = 'error'
|
||||
paymentNotice.value = order.failureReason || '支付未完成,请重新发起'
|
||||
paymentNotice.value = order.status === 'closed' ? '订单已关闭,请重新发起支付' : (order.failureReason || '支付未完成,请重新发起')
|
||||
clearPendingOrder()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user