更新 index.vue

This commit is contained in:
zzzzzak
2025-01-12 12:02:01 +08:00
committed by GitHub
parent bfeb64196d
commit 0024d0f4e1
+3
View File
@@ -207,6 +207,7 @@ const onShowRights = (item: any) => {
const onInvest = mergeStep(async (item: any) => { const onInvest = mergeStep(async (item: any) => {
try { try {
uni.showLoading()
await submitInvestAPI({ await submitInvestAPI({
investid: item.id, investid: item.id,
type: 3, type: 3,
@@ -218,6 +219,8 @@ const onInvest = mergeStep(async (item: any) => {
}) })
} }
return return
} finally {
uni.hideLoading()
} }
await userStore.loadUserInfo() await userStore.loadUserInfo()
uni.showToast({ uni.showToast({