feat: 完成空间管理模块
This commit is contained in:
@@ -30,6 +30,8 @@ const useUserStore = defineStore('user', {
|
||||
certification: undefined,
|
||||
role: '',
|
||||
permission: [],
|
||||
projects: undefined,
|
||||
currentProjectId: undefined,
|
||||
}),
|
||||
|
||||
// 配置持久化
|
||||
@@ -37,7 +39,16 @@ const useUserStore = defineStore('user', {
|
||||
key: 'user-store',
|
||||
storage: localStorage,
|
||||
// 只持久化关键的用户信息,排除敏感信息
|
||||
pick: ['name', 'avatar', 'role', 'permission', 'accountId', 'email'],
|
||||
pick: [
|
||||
'name',
|
||||
'avatar',
|
||||
'role',
|
||||
'permission',
|
||||
'accountId',
|
||||
'email',
|
||||
'projects',
|
||||
'currentProjectId',
|
||||
],
|
||||
},
|
||||
|
||||
getters: {
|
||||
|
||||
Reference in New Issue
Block a user