修改编辑文件问题

This commit is contained in:
liaofei 2023-04-24 17:25:48 +08:00
parent eec5bcafc2
commit dc79fbbf9a

View File

@ -329,12 +329,13 @@ class SystemCrud extends AuthController
$makeFilepath = '';
foreach ($crudInfo->make_path as $key => $item) {
$path = $item;
if (in_array($key, ['pages', 'router', 'api'])) {
$item = Make::adminTemplatePath() . $item;
} else {
$item = app()->getRootPath() . $item;
}
if ($filepath == $item) {
if ($filepath == $path) {
$makeFilepath = $item;
break;
}