This commit is contained in:
wangchen147 2023-12-13 18:21:43 +08:00
parent 52b50b7ee0
commit 822a4c1955

View File

@ -250,7 +250,7 @@ class MenuSqlGenerator extends BaseGenerator
'parent_key' => $key,
'menu_type' => $this->table['edit_type'] == 1 ? 2 : 1,
'icon' => '',
'api_url' => $this->getRouteName().'/:id',
'api_url' => $this->getRouteName().'/<id>',
'router_path' => $this->table['edit_type'] == 2 ? ($this->className ? Str::lower($this->className) . '_edit' : 'edit') : '',
'view_path' => $this->table['edit_type'] == 2 ? $this->moduleName.'/'.($this->className ? Str::lower($this->className) . '_edit' : 'edit') : '',
'methods' => 'put',
@ -268,7 +268,7 @@ class MenuSqlGenerator extends BaseGenerator
'parent_key' => $key,
'menu_type' => 2,
'icon' => '',
'api_url' => $this->getRouteName().'/:id',
'api_url' => $this->getRouteName().'/<id>',
'router_path' => '',
'view_path' => '',
'methods' => 'delete',
@ -399,7 +399,7 @@ class MenuSqlGenerator extends BaseGenerator
'parent_key' => $key,
'menu_type' => $this->table['edit_type'] == 1 ? 2 : 1,
'icon' => '',
'api_url' => $this->getRouteName().'/:id',
'api_url' => $this->getRouteName().'/<id>',
'router_path' => $this->table['edit_type'] == 2 ? ($this->className ? Str::lower($this->className) . '_edit' : 'edit') : '',
'view_path' => $this->table['edit_type'] == 2 ? $this->moduleName.'/'.($this->className ? Str::lower($this->className) . '_edit' : 'edit') : '',
'methods' => 'put',
@ -417,7 +417,7 @@ class MenuSqlGenerator extends BaseGenerator
'parent_key' => $key,
'menu_type' => 2,
'icon' => '',
'api_url' => $this->getRouteName().'/:id',
'api_url' => $this->getRouteName().'/<id>',
'router_path' => '',
'view_path' => '',
'methods' => 'delete',