From 822a4c1955f6efd1382a8bba721e722649a10c2e Mon Sep 17 00:00:00 2001 From: wangchen147 <30853657+wangchen147@users.noreply.github.com> Date: Wed, 13 Dec 2023 18:21:43 +0800 Subject: [PATCH] 0.0.8 --- .../app/service/admin/generator/core/MenuSqlGenerator.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/niucloud/app/service/admin/generator/core/MenuSqlGenerator.php b/niucloud/app/service/admin/generator/core/MenuSqlGenerator.php index d47800976..af26d5db8 100644 --- a/niucloud/app/service/admin/generator/core/MenuSqlGenerator.php +++ b/niucloud/app/service/admin/generator/core/MenuSqlGenerator.php @@ -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().'/', '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().'/', '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().'/', '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().'/', 'router_path' => '', 'view_path' => '', 'methods' => 'delete',