refactor(admin): remove unused 'where' option in system module
- Remove unnecessary 'where' option from various models in system module - Simplify query methods by removing redundant 'where' calls - Affected models: Config, Node, SystemAdmin, SystemMenu, SystemNode
This commit is contained in:
@@ -9,7 +9,7 @@ class SystemNode extends TimeModel
|
||||
|
||||
public function getNodeTreeList(): array
|
||||
{
|
||||
$list = $this->removeOption('where')->select()->toArray();
|
||||
$list = $this->removeOption()->select()->toArray();
|
||||
return $this->buildNodeTree($list);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user