fix: bug
This commit is contained in:
@@ -211,10 +211,13 @@ const onInvest = mergeStep(async (item: any) => {
|
|||||||
investid: item.id,
|
investid: item.id,
|
||||||
type: 3,
|
type: 3,
|
||||||
})
|
})
|
||||||
} catch {
|
} catch (error) {
|
||||||
return uni.switchTab({
|
if (error?.data?.msg.includes('邀请')) {
|
||||||
url: '/pages/invite/index',
|
return uni.switchTab({
|
||||||
})
|
url: '/pages/invite/index',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
await userStore.loadUserInfo()
|
await userStore.loadUserInfo()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
Reference in New Issue
Block a user