Update teams-popup.vue

This commit is contained in:
huxuejian 2026-07-14 17:29:26 +08:00
parent e2bdfe6d64
commit c54d44b57e

View File

@ -52,6 +52,7 @@ function close() {
}
async function enterTeam(team) {
if (account.value && account.value.mobile) {
const res = await api('bindWxappWithTeam', { appid, corpId: team.corpId, teamId: team.teamId, openid: account.value.openid });
if (!res || !res.success) {
return toast("关联团队失败");
@ -63,7 +64,11 @@ async function enterTeam(team) {
uni.switchTab({
url: "/pages/home/home",
});
// uni.navigateTo({ url: `/pages/team/team-detail?corpId=${team.corpId}&teamId=${team.teamId}` })
}else {
uni.redirectTo({
url: `/pages/login/redirect-page?corpId=${team.corpId}&teamId=${team.teamId}`,
})
}
// close()
}