This commit is contained in:
2021-09-18 11:03:45 +08:00
parent 5f4af41551
commit 37a341dd1b
+2 -2
View File
@@ -89,9 +89,9 @@ class Router
$route = ltrim($route, '/');
$prefix = array_column($this->groupTack, 'prefix');
if (empty($prefix = array_filter($prefix))) {
return $route;
return '/' . $route;
}
return implode('/', $prefix) . $route;
return '/' . implode('/', $prefix) . $route;
}