fix(avatar): clear stale checkout context and closed orders

This commit is contained in:
stefanfeng
2026-10-16 15:03:03 +08:00
parent b1bf203018
commit 09aebea7d1
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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
}