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:
1 parent
7a45df9de7
commit
07f45a1c92
3 files changed
+583
-4
No files matched your search
@@ -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()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user