mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-13 03:12:47 +00:00
0.0.8
This commit is contained in:
parent
52b50b7ee0
commit
822a4c1955
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user