From a607cfed5648dca4f2ef76b5975e14edfe9de090 Mon Sep 17 00:00:00 2001
From: xy <10816187@qq.com>
Date: Wed, 27 Nov 2024 15:49:02 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8F=9C=E5=8D=95tree=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
admin/src/pages/menu/form.tsx | 4 ++--
admin/src/routes.ts | 20 ++++++++-----------
server/.env | 2 +-
.../src/modules/system/menu/menu.service.ts | 19 +++++++-----------
4 files changed, 18 insertions(+), 27 deletions(-)
diff --git a/admin/src/pages/menu/form.tsx b/admin/src/pages/menu/form.tsx
index 22190d8..85a6533 100644
--- a/admin/src/pages/menu/form.tsx
+++ b/admin/src/pages/menu/form.tsx
@@ -38,7 +38,7 @@ export default function FormComponent(props: Props) {
const {data} = await getMenu();
const mergeMenu = [
{
- id: 0,
+ id: null,
name: '无父级'
},
...data
@@ -73,7 +73,7 @@ export default function FormComponent(props: Props) {
-
+