调整权限认证组件,修改API文档
This commit is contained in:
parent
ebe20a9ee6
commit
0c0e1e5aff
|
|
@ -84,10 +84,7 @@ const handleGO = (data) => {
|
||||||
} else if (data.isImg) {
|
} else if (data.isImg) {
|
||||||
userStore.imageIndex = data.url
|
userStore.imageIndex = data.url
|
||||||
window.open(data.url)
|
window.open(data.url)
|
||||||
} else if (data.router) {
|
|
||||||
router.push({
|
|
||||||
path: data.url,
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
ElMessage.error('对不起,您没有该应用权限。')
|
ElMessage.error('对不起,您没有该应用权限。')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,15 +29,6 @@ import java.util.stream.Collectors;
|
||||||
public class PermissionService {
|
public class PermissionService {
|
||||||
private final PermissionRepo permissionRepo;
|
private final PermissionRepo permissionRepo;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public PermissionService(PermissionRepo permissionRepo) {
|
|
||||||
this.permissionRepo = permissionRepo;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Transactional
|
|
||||||
public Permission addPermission(@NotNull @Validated(Permission.Add.class) Permission permission) {
|
|
||||||
return permissionRepo.save(permission);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public void modifyPermission(@NotNull @Validated(Permission.Modify.class) Permission permission) {
|
public void modifyPermission(@NotNull @Validated(Permission.Modify.class) Permission permission) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue