feat: 修改登录页加入企业逻辑

This commit is contained in:
rd
2025-07-23 17:02:24 +08:00
parent 45e4da004d
commit 5525d28f2d
4 changed files with 29 additions and 8 deletions

View File

@ -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,
});
</script>
<style lang="scss">