From 25c045418d72230ffb08fef6e0b20e1490947c67 Mon Sep 17 00:00:00 2001 From: anonymous Date: Sat, 11 Jan 2025 11:25:14 +0800 Subject: [PATCH] fix: bug --- src/pages/invest/index.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pages/invest/index.vue b/src/pages/invest/index.vue index d27093c..1d7624f 100644 --- a/src/pages/invest/index.vue +++ b/src/pages/invest/index.vue @@ -211,10 +211,13 @@ const onInvest = mergeStep(async (item: any) => { investid: item.id, type: 3, }) - } catch { - return uni.switchTab({ - url: '/pages/invite/index', - }) + } catch (error) { + if (error?.data?.msg.includes('邀请')) { + return uni.switchTab({ + url: '/pages/invite/index', + }) + } + return } await userStore.loadUserInfo() uni.showToast({