|
@@ -114,7 +114,7 @@ class Menu extends Controller
|
|
|
*/
|
|
*/
|
|
|
public function destroy()
|
|
public function destroy()
|
|
|
{
|
|
{
|
|
|
- return $this->error(HttpStatus::CUSTOM_ERROR, '禁止删除');
|
|
|
|
|
|
|
+// return $this->error(HttpStatus::CUSTOM_ERROR, '禁止删除');
|
|
|
$id = request()->post('id');
|
|
$id = request()->post('id');
|
|
|
// 示例:通过 ID 删除菜单
|
|
// 示例:通过 ID 删除菜单
|
|
|
$info = MenuService::findOne(['id' => $id]);
|
|
$info = MenuService::findOne(['id' => $id]);
|