feat: 修改登录页加入企业逻辑
This commit is contained in:
@ -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">
|
||||
|
||||
Reference in New Issue
Block a user