feat(layout): 添加企业邀请码加入功能

- 在 Basic.vue 中添加 JoinModal 组件,用于展示加入企业的模态框
- 添加 checkHasInviteCode 方法,在页面加载时检查邀请码
- 新增 getQueryParam 工具函数,用于获取 URL 参数
- 添加加入企业的相关 API 接口
- 实现 JoinModal 组件,包含加入企业的逻辑和界面
This commit is contained in:
2025-06-20 18:16:40 +08:00
parent 87ef27759f
commit c83eadcbed
4 changed files with 76 additions and 1 deletions

5
src/utils/helper.ts Normal file
View File

@ -0,0 +1,5 @@
export function getQueryParam(param: string): string | null {
const search = window.location.search || window.location.hash.split('?')[1] || '';
const params = new URLSearchParams(search);
return params.get(param);
}