From 5525d28f2d0484c96a2befb4f742af7acf29ea62 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Wed, 23 Jul 2025 17:02:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E5=8A=A0=E5=85=A5=E4=BC=81=E4=B8=9A=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/join-modal.vue | 8 ++++++-- src/layouts/Basic.vue | 13 +++++++++---- src/router/guard/userLoginInfo.ts | 3 ++- src/views/components/login/index.vue | 13 ++++++++++++- 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/src/components/join-modal.vue b/src/components/join-modal.vue index c05628b..0b32313 100644 --- a/src/components/join-modal.vue +++ b/src/components/join-modal.vue @@ -12,6 +12,7 @@ import { ref, onMounted } from 'vue'; import { getQueryParam } from '@/utils/helper'; import { getEnterpriseByInviteCode, joinEnterpriseByInviteCode } from '@/api/all'; + const enterprise = ref(); const inviteCode = ref(); @@ -27,8 +28,11 @@ async function handleJoin() { await joinEnterpriseByInviteCode(inviteCode.value); AMessage.success('加入成功'); } -onMounted(() => { - getEnterprise(); +// onMounted(() => { +// getEnterprise(); +// }); +defineExpose({ + getEnterprise, });