表单开发按钮权限 key字段跟后台保持一致
This commit is contained in:
@@ -33,7 +33,7 @@ interface DeptVO {
|
||||
|
||||
interface UserInfoVO {
|
||||
permissions: object
|
||||
lideeYunjipermissions: object
|
||||
lideeYunJipermissions: object
|
||||
roles: string[]
|
||||
isSetUser: boolean
|
||||
user: UserVO
|
||||
@@ -43,7 +43,7 @@ interface UserInfoVO {
|
||||
export const useUserStore = defineStore('admin-user', {
|
||||
state: (): UserInfoVO => ({
|
||||
permissions: {},
|
||||
lideeYunjipermissions: {},
|
||||
lideeYunJipermissions: {},
|
||||
roles: [],
|
||||
isSetUser: false,
|
||||
user: {
|
||||
@@ -58,8 +58,8 @@ export const useUserStore = defineStore('admin-user', {
|
||||
getPermissions(): object {
|
||||
return this.permissions
|
||||
},
|
||||
getLideeYunjipermissions(): object {
|
||||
return this.lideeYunjipermissions
|
||||
getLideeYunJipermissions(): object {
|
||||
return this.lideeYunJipermissions
|
||||
},
|
||||
getRoles(): string[] {
|
||||
return this.roles
|
||||
@@ -82,7 +82,7 @@ export const useUserStore = defineStore('admin-user', {
|
||||
userInfo = await getInfo()
|
||||
}
|
||||
this.permissions = userInfo.permissions
|
||||
this.lideeYunjipermissions = userInfo.lideeYunjipermissions
|
||||
this.lideeYunJipermissions = userInfo.lideeYunJipermissions
|
||||
this.roles = userInfo.roles
|
||||
this.user = userInfo.user
|
||||
this.deptInfo = userInfo.deptInfoList
|
||||
@@ -112,7 +112,7 @@ export const useUserStore = defineStore('admin-user', {
|
||||
},
|
||||
resetState() {
|
||||
this.permissions = {}
|
||||
this.lideeYunjipermissions = {}
|
||||
this.lideeYunJipermissions = {}
|
||||
this.roles = []
|
||||
this.isSetUser = false
|
||||
this.user = {
|
||||
|
||||
Reference in New Issue
Block a user