设计资料

This commit is contained in:
2025-08-12 19:01:04 +08:00
parent aecff98642
commit 8c024e6269
18 changed files with 2894 additions and 218 deletions

View File

@ -38,6 +38,7 @@ export const useUserStore = defineStore('user', () => {
const nickname = ref('');
const userId = ref<string | number>('');
const tenantId = ref<string>('');
const deptId = ref<string | number>('');
const avatar = ref('');
const roles = ref<Array<string>>([]); // 用户角色编码集合 → 判断路由权限
const permissions = ref<Array<string>>([]); // 用户权限编码集合 → 判断按钮权限
@ -82,6 +83,7 @@ export const useUserStore = defineStore('user', () => {
avatar.value = profile;
userId.value = user.userId;
tenantId.value = user.tenantId;
deptId.value = user.deptId;
// **新增项目数据获取**
const [projectErr, projectRes] = await to(getUserProject());
@ -141,6 +143,7 @@ export const useUserStore = defineStore('user', () => {
return {
userId,
tenantId,
deptId,
token,
nickname,
avatar,