Skip to content

Commit

Permalink
feat: 调整保存角色权限的路由
Browse files Browse the repository at this point in the history
  • Loading branch information
slowlyo committed Jul 1, 2024
1 parent c35da74 commit bc3c003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controllers/AdminRoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function setPermission()
->closeOnEsc()
->body([
amis()->Form()
->api(admin_url('system/admin_role_save_permissions'))
->api(admin_url('system/admin_roles/save_permissions'))
->initApi($this->getEditGetDataPath())
->mode('normal')
->data(['id' => '${id}'])
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Cores/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static function baseRoutes($prefix)
$router->resource('admin_roles', AdminRoleController::class);
$router->resource('admin_permissions', AdminPermissionController::class);

$router->post('admin_role_save_permissions', [AdminRoleController::class, 'savePermissions']);
$router->post('admin_roles/save_permissions', [AdminRoleController::class, 'savePermissions']);
$router->post('_admin_permissions_auto_generate', [AdminPermissionController::class, 'autoGenerate']);
});

Expand Down

0 comments on commit bc3c003

Please sign in to comment.