fix(miniprogram): refresh detail after withdraw failure

Also add the bx apply withdraw implementation plan.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-09-14 10:07:44 +08:00
1 parent 7a45df9de7
commit 07f45a1c92
3 files changed
+583 -4

No files matched your search

+2 -2
View File
@@ -371,11 +371,11 @@ function handleWithdraw() {
try {
await advanceApi.withdraw(detail.value.id)
uni.showToast({ title: '已撤回', icon: 'success' })
await loadDetail()
} catch (e) {
// toasted
// toasted by bxRequest
} finally {
actionLoading.withdraw = false
await loadDetail()
}
}
})
+2 -2
View File
@@ -415,11 +415,11 @@ function handleWithdraw() {
try {
await reimburseApi.withdraw(detail.value.id)
uni.showToast({ title: '已撤回', icon: 'success' })
await loadDetail()
} catch (e) {
// toasted
// toasted by bxRequest
} finally {
actionLoading.withdraw = false
await loadDetail()
}
}
})