修改文件展示

This commit is contained in:
liaofei 2023-04-25 17:56:23 +08:00
parent 9e6c80ebae
commit 1ba94cb77c

View File

@ -238,8 +238,8 @@ class SystemCrud extends AuthController
]);
$data = [];
foreach ($make as $item) {
if (in_array($item['path'], ['pages', 'router', 'api'])) {
foreach ($make as $key => $item) {
if (in_array($key, ['pages', 'router', 'api'])) {
$path = Make::adminTemplatePath() . $item['path'];
} else {
$path = app()->getRootPath() . $item['path'];