fixed:class not found

This commit is contained in:
JaguarJack 2021-04-01 20:17:25 +08:00
parent 4180cb2565
commit 2125966684

View File

@ -52,7 +52,7 @@ $router->group(function () use ($router) {
// 获取 table
$router->get('table/<module>/<tableClass>', function ($module, $tableClass){
$table = sprintf('\\catchAdmin\\%s\\tables\\%s', $module, $tableClass);
$table = sprintf('\\catchAdmin\\%s\\tables\\%s', $module, ucfirst($tableClass));
return (new $table)->render(request()->param('only'));
});