This commit is contained in:
2021-03-08 14:49:11 +08:00
parent 101b9917a3
commit e68bb00920
2 changed files with 5 additions and 4 deletions
+5 -2
View File
@@ -230,8 +230,11 @@ class Columns extends Component
*/
public function hasField(string $name): bool
{
var_dump($this->getFields());
return isset($this->getFields()[$name]);
$fields = $this->getFields();
if (!isset($fields[$name])) {
var_dump($name, $fields);
}
return isset($fields[$name]);
}
-2
View File
@@ -480,10 +480,8 @@ class Router extends HttpService implements RouterInterface
{
try {
if (!($node = $this->find_path(\request()))) {
var_dump($node->path);
return send(self::NOT_FOUND);
}
var_dump($node->path);
send($response = $node->dispatch(), 200);
if (!$node->hasAfter()) {
return null;