From e9d3200c38cb8e54e9c1986d0ed05b7cc59580c8 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Tue, 10 Feb 2026 21:20:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E5=B0=86=E8=A1=A8=E5=8D=95=E6=8E=92=E5=BA=8F=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E4=BB=8E0=E6=94=B9=E4=B8=BA1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 避免因默认值为0导致排序异常,确保新增记录时排序字段有合理的初始值 --- apps/web-antd/src/views/system/dept/data.ts | 2 +- apps/web-antd/src/views/system/dict/data/data.ts | 2 +- apps/web-antd/src/views/system/menu/data.tsx | 2 +- apps/web-antd/src/views/system/post/data.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web-antd/src/views/system/dept/data.ts b/apps/web-antd/src/views/system/dept/data.ts index 7cc61fa6..39eaa232 100644 --- a/apps/web-antd/src/views/system/dept/data.ts +++ b/apps/web-antd/src/views/system/dept/data.ts @@ -95,7 +95,7 @@ export const drawerSchema: FormSchemaGetter = () => [ fieldName: 'orderNum', label: '显示排序', rules: 'required', - defaultValue: 0, + defaultValue: 1, }, { component: 'Input', diff --git a/apps/web-antd/src/views/system/dict/data/data.ts b/apps/web-antd/src/views/system/dict/data/data.ts index f3a78362..89cd5d16 100644 --- a/apps/web-antd/src/views/system/dict/data/data.ts +++ b/apps/web-antd/src/views/system/dict/data/data.ts @@ -99,7 +99,7 @@ export const drawerSchema: FormSchemaGetter = () => [ fieldName: 'dictSort', label: '显示排序', rules: 'required', - defaultValue: 0, + defaultValue: 1, }, { component: 'Textarea', diff --git a/apps/web-antd/src/views/system/menu/data.tsx b/apps/web-antd/src/views/system/menu/data.tsx index fdd348a5..ae1756e0 100644 --- a/apps/web-antd/src/views/system/menu/data.tsx +++ b/apps/web-antd/src/views/system/menu/data.tsx @@ -228,7 +228,7 @@ export const drawerSchema: FormSchemaGetter = () => [ fieldName: 'orderNum', help: '排序, 数字越小越靠前', label: '显示排序', - defaultValue: 0, + defaultValue: 1, rules: 'required', }, { diff --git a/apps/web-antd/src/views/system/post/data.ts b/apps/web-antd/src/views/system/post/data.ts index 23048f28..dac83da3 100644 --- a/apps/web-antd/src/views/system/post/data.ts +++ b/apps/web-antd/src/views/system/post/data.ts @@ -111,7 +111,7 @@ export const drawerSchema: FormSchemaGetter = () => [ fieldName: 'postSort', label: '岗位排序', rules: 'required', - defaultValue: 0, + defaultValue: 1, }, { component: 'RadioGroup',