重构消息通知弹窗
This commit is contained in:
parent
f1f8b963f1
commit
13b2a6ac53
@ -201,8 +201,8 @@ const EditModal: React.FC<EditModalProps> = ({
|
|||||||
<div className="grid gap-2">
|
<div className="grid gap-2">
|
||||||
<Label htmlFor="department">所属部门</Label>
|
<Label htmlFor="department">所属部门</Label>
|
||||||
<Select
|
<Select
|
||||||
value={formData.departmentId?.toString() || undefined}
|
value={formData.departmentId?.toString() || ''}
|
||||||
onValueChange={(value) => setFormData({ ...formData, departmentId: Number(value) })}
|
onValueChange={(value) => setFormData({ ...formData, departmentId: value ? Number(value) : undefined })}
|
||||||
>
|
>
|
||||||
<SelectTrigger>
|
<SelectTrigger>
|
||||||
<SelectValue placeholder="请选择所属部门" />
|
<SelectValue placeholder="请选择所属部门" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user