This commit is contained in:
2021-04-02 18:52:11 +08:00
parent ca95569485
commit 0186bbc33d
+3 -3
View File
@@ -484,9 +484,9 @@ class Router extends HttpService implements RouterInterface
$newPath = []; $newPath = [];
/** @var Node $item */ /** @var Node $item */
foreach ($child as $item) { foreach ($child as $item) {
if ($item->path == '/') { // if ($item->path == '/') {
continue; // continue;
} // }
if (!empty($item->childes)) { if (!empty($item->childes)) {
$newPath[] = $this->readByChild($item->childes, $paths . '/' . $item->path); $newPath[] = $this->readByChild($item->childes, $paths . '/' . $item->path);
} else { } else {