webman迁移

This commit is contained in:
2026-03-08 23:57:47 +08:00
parent 3c67427bbb
commit 699761aad2
19 changed files with 145 additions and 41 deletions

View File

@@ -34,7 +34,7 @@ class Rule extends Backend
protected bool $modelValidate = false;
protected function initController(Request $request): void
protected function initController(Request $request): ?Response
{
$this->model = new AdminRule();
$this->tree = Tree::instance();
@@ -43,6 +43,7 @@ class Rule extends Backend
$this->initValue = is_array($this->initValue) ? array_filter($this->initValue) : [];
$this->keyword = $request->get('quickSearch') ?? $request->post('quickSearch') ?? '';
$this->assembleTree = $isTree && !$this->initValue;
return null;
}
public function index(Request $request): Response