mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 优化代码
This commit is contained in:
parent
a73e2d8501
commit
3752b42248
@ -32,7 +32,7 @@ class RouterTool {
|
||||
$context .= 'use think\facade\Route;' . PHP_EOL;
|
||||
$context .= "Route::miss('api/Miss/index');" . PHP_EOL;
|
||||
|
||||
$menus = AdminMenu::all(['show' => 1]);
|
||||
$menus = AdminMenu::all();
|
||||
if ($menus) {
|
||||
foreach ($menus as $menu) {
|
||||
if ($menu['url']) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user