This commit is contained in:
as2252258@163.com
2021-03-06 20:01:23 +08:00
parent 7db0d1714e
commit 53218bb493
+1 -1
View File
@@ -365,7 +365,7 @@ class Router extends HttpService implements RouterInterface
return null; return null;
} }
if (empty($explode)) { if (empty($explode)) {
return $parent; return $parent->findNode('/');
} }
while ($value = array_shift($explode)) { while ($value = array_shift($explode)) {
$node = $parent->findNode($value); $node = $parent->findNode($value);