fix(登录): 🐛 自动登录导致登录错误问题

This commit is contained in:
猿小天
2023-04-28 17:34:05 +08:00
parent c9fddbd4a7
commit 111ca9554c
2 changed files with 12 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
};
//权限判定
const hasPermissions = inject('$hasPermissions');
const hasPermissions:any = inject('$hasPermissions');
return {
crudOptions: {
@@ -36,6 +36,14 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
editRequest,
delRequest,
},
actionbar: {
buttons: {
add: {
show: hasPermissions('user:Create')
// show:true
}
}
},
rowHandle: {
//固定右侧
fixed: 'right',