调整权限认证组件,修改API文档

This commit is contained in:
yuyan02 2025-08-08 19:23:52 +08:00
parent ebe20a9ee6
commit 0c0e1e5aff
2 changed files with 1 additions and 13 deletions

View File

@ -84,10 +84,7 @@ const handleGO = (data) => {
} else if (data.isImg) {
userStore.imageIndex = data.url
window.open(data.url)
} else if (data.router) {
router.push({
path: data.url,
})
} else {
ElMessage.error('对不起,您没有该应用权限。')
}

View File

@ -29,15 +29,6 @@ import java.util.stream.Collectors;
public class PermissionService {
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
public void modifyPermission(@NotNull @Validated(Permission.Modify.class) Permission permission) {